summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Baust2020-04-16 12:29:28 +0200
committerTobias Baust2020-04-16 12:29:28 +0200
commit2e8c566d273fe4bb474063446f6f9aad963eed01 (patch)
treeb7d4a066f86ae35f6cac51e4a452c5abd8110660
downloadaur-2e8c566d273fe4bb474063446f6f9aad963eed01.tar.gz
initial import
-rw-r--r--.SRCINFO32
-rw-r--r--PKGBUILD65
-rw-r--r--cantera-git.install4
3 files changed, 101 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..73af3bb98d5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,32 @@
+pkgbase = cantera-git
+ pkgdesc = suite of tools for kinetics, thermodynamics, and transport processes
+ pkgver = 2.4.0.r689.g29437efc4
+ pkgrel = 1
+ url = https://cantera.org/
+ install = cantera-git.install
+ arch = x86_64
+ license = custom:Cantera Developers
+ license = custom:Sandia Corporation Contract AC04-94AL85000
+ license = custom:California Institute of Technology
+ checkdepends = gtest
+ checkdepends = gmock
+ makedepends = scons
+ makedepends = git
+ makedepends = gcc
+ makedepends = fmt
+ depends = python
+ depends = eigen
+ depends = sundials
+ depends = boost
+ optdepends = python-numpy: numerical python support
+ optdepends = cython: compiler for python interface
+ optdepends = python-ruamel-yaml: for cython test cases in check()
+ optdepends = doxygen: documentation
+ optdepends = python-sphinx: documentation
+ optdepends = tcsh: csh scripts
+ provides = libcantera_shared.so=2-64
+ source = git+https://github.com/Cantera/cantera.git
+ md5sums = SKIP
+
+pkgname = cantera-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e1c7932ff71
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,65 @@
+# Maintainer: Tobias Baust <tobias.baust at tutanota dot com>
+_pkgname=cantera
+pkgname="${_pkgname}-git"
+pkgver='2.4.0.r689.g29437efc4'
+pkgrel=1
+pkgdesc='suite of tools for kinetics, thermodynamics, and transport processes'
+arch=('x86_64')
+url='https://cantera.org/'
+license=('custom:Cantera Developers'
+ 'custom:Sandia Corporation Contract AC04-94AL85000'
+ 'custom:California Institute of Technology')
+depends=('python' 'eigen' 'sundials' 'boost')
+makedepends=('scons' 'git' 'gcc' 'fmt')
+checkdepends=('gtest' 'gmock')
+optdepends=('python-numpy: numerical python support'
+ 'cython: compiler for python interface'
+ 'python-ruamel-yaml: for cython test cases in check()'
+ 'doxygen: documentation'
+ 'python-sphinx: documentation'
+ 'tcsh: csh scripts')
+provides=('libcantera_shared.so=2-64')
+install="$pkgname.install"
+source=(git+https://github.com/Cantera/cantera.git)
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$_pkgname"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$_pkgname"
+ # build cantera
+ scons build \
+ prefix="$pkgdir/usr" \
+ system_eigen='y' \
+ system_sundials='y' \
+ sundials_include='/usr/include/sundials' \
+ googletest='system' \
+ extra_inc_dirs='/usr/include/eigen3'
+ # build documentation
+ if [ $(pacman -Qi doxygen &> /dev/null) -eq "0" ]; then
+ scons doxygen
+ fi
+ if [ $(pacman -Qi python-sphinx &> /dev/null) -eq "0" ]; then
+ scons sphinx
+ fi
+ # build cantera samples
+ scons samples
+}
+
+check() {
+ cd "$_pkgname"
+ # run tests
+ scons test
+}
+
+package() {
+ cd "$_pkgname"
+ install -Dm644 License.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ # install cantera
+ scons install
+ # correct namcap warning directory-not-world-executable
+ chmod 755 "$pkgdir/usr/lib/python3.8/site-packages"
+}
diff --git a/cantera-git.install b/cantera-git.install
new file mode 100644
index 00000000000..ff0f6b9c3e9
--- /dev/null
+++ b/cantera-git.install
@@ -0,0 +1,4 @@
+post_install() {
+ echo "Set Cantera Environment:"
+ echo "$ source /usr/bin/setup_cantera"
+}