summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorandalenavals2017-12-31 15:39:47 -0500
committerandalenavals2017-12-31 15:39:47 -0500
commit6a6bb29806e2bdd31ac696f4af33592cca8b0af3 (patch)
treebe7631693be61313e2c6a98355c29ef714ef4d64
parent6512449b719cbf5d5136c987963301a5a7dd506a (diff)
downloadaur-6a6bb29806e2bdd31ac696f4af33592cca8b0af3.tar.gz
add check with scons
-rw-r--r--PKGBUILD15
1 files changed, 10 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 7c31c30f992..6c3bd05ec35 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,7 @@
# Maintainer: Andres Alejandro Navarro Alsina <aanavarroa@unal.edu.co>
# Contributor: M. Jarvis
-pkgname=tmv-git
+_pkgname=tmv
+pkgname=${_pkgname}-git
pkgver=v0.75.r0.fab5df3
pkgrel=1
#epoch=
@@ -10,24 +11,28 @@ url="https://github.com/rmjarvis/tmv/"
license=('BSD')
depends=('bash' 'cblas')
makedepends=('git')
-source=("${pkgname%-git}::git+${url}")
+source=("${_pkgname}::git+${url}")
md5sums=('SKIP')
pkgver() {
- cd "$srcdir/${pkgname%-git}"
+ cd "${_pkgname}"
printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
+check() {
+ cd "${_pkgname}"
+ scons tests && tests/tmvtest1 && tests/tmvtest2 && tests/tmvtest3
+}
build() {
- cd "$srcdir/${pkgname%-git}"
+ cd "${_pkgname}"
scons PREFIX=/usr
}
package() {
- cd "$srcdir/${pkgname%-git}"
+ cd "${_pkgname}"
scons PREFIX=$pkgdir/usr FINAL_PREFIX=/usr install
install -Dm644 TMV_LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE