summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorTobias Baust2021-02-15 19:50:34 +0100
committerTobias Baust2021-02-15 19:50:34 +0100
commit63fa647a8c35ee584da81e75be4ecbfd016534ad (patch)
treeca8ca945c355cfdf9fd0d6b25f82acf519d4b673 /PKGBUILD
parenta5500f40eec9e6d576764e0dd5061746b678cd2c (diff)
downloadaur-cantera-git.tar.gz
cleanup tests and parallel build
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD8
1 files changed, 5 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 86a65462cc0..055e7bb7fbb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,4 +1,5 @@
# Maintainer: Tobias M. Baust <tobias.baust at tutanota dot com>
+# Maintainer: Ruben Di Battista <rubendibattista at gmail dot com>
_pkgname=cantera
pkgname="${_pkgname}-git"
pkgver='2.5.1.r0.gb0bace782'
@@ -16,6 +17,7 @@ provides=('libcantera_shared.so=2-64')
install="$pkgname.install"
source=(git+https://github.com/Cantera/cantera.git)
md5sums=('SKIP')
+_python_v=$(python -V | awk '{print $2}')
pkgver() {
cd "$_pkgname"
@@ -25,7 +27,7 @@ pkgver() {
build() {
cd "$_pkgname"
# build cantera
- scons build \
+ scons -j $(nproc) build \
prefix="$pkgdir/usr" \
system_eigen='y' \
system_sundials='y' \
@@ -40,7 +42,8 @@ build() {
check() {
cd "$_pkgname"
- scons test
+ scons -j $(nproc) test
+ scons test-clean
}
package() {
@@ -49,6 +52,5 @@ package() {
# install cantera
scons install
# correct namcap warning directory-not-world-executable
- _python_v=$(python -V | awk '{print $2}')
chmod 755 "$pkgdir/usr/lib/python${_python_v:0:3}/site-packages"
}