[arch-commits] Commit in haskell-stm-delay/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Fri Jan 3 21:25:53 UTC 2020
Date: Friday, January 3, 2020 @ 21:25:53
Author: jelle
Revision: 547759
Add test suite to the package
Modified:
haskell-stm-delay/trunk/PKGBUILD
----------+
PKGBUILD | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-03 21:04:05 UTC (rev 547758)
+++ PKGBUILD 2020-01-03 21:25:53 UTC (rev 547759)
@@ -16,7 +16,7 @@
build() {
cd $_pkgname-$pkgver
runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
- --prefix=/usr --docdir=/usr/share/doc/$pkgname \
+ --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
runhaskell Setup build
runhaskell Setup register --gen-script
@@ -25,6 +25,11 @@
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
+check() {
+ cd $_pkgname-$pkgver
+ runhaskell Setup test
+}
+
package() {
cd $_pkgname-$pkgver
install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh
More information about the arch-commits
mailing list