[arch-commits] Commit in haskell-splitmix/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Mon Dec 23 11:43:16 UTC 2019


    Date: Monday, December 23, 2019 @ 11:43:16
  Author: felixonmars
Revision: 539074

upgpkg: haskell-splitmix 0.0.3-4: rebuild pass 1, specified --nocheck

Modified:
  haskell-splitmix/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-23 10:18:23 UTC (rev 539073)
+++ PKGBUILD	2019-12-23 11:43:16 UTC (rev 539074)
@@ -3,7 +3,7 @@
 _hkgname=splitmix
 pkgname=haskell-splitmix
 pkgver=0.0.3
-pkgrel=3
+pkgrel=4
 pkgdesc="Fast Splittable PRNG"
 url="https://github.com/phadej/splitmix"
 license=('BSD')
@@ -15,10 +15,16 @@
 sha512sums=('01d53a606de35c1aef5b4669c19308f63711053a6fee38466e421a7e712bca7cbfa37ffdfcf2a4671fc22354b5e83228255785a808c1b6c3ad941fd550d5560f')
 
 build() {
-    cd $_hkgname-$pkgver    
+    cd $_hkgname-$pkgver
+
+    if (( CHECKFUNC )); then
+        _opts=('--enable-tests')
+    else
+        _opts=('--disable-tests')
+    fi
     
     runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
-        --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname "${_opts[@]}" \
         --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
     runhaskell Setup build
     runhaskell Setup register --gen-script



More information about the arch-commits mailing list