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

Felix Yan felixonmars at archlinux.org
Sat Feb 15 22:50:59 UTC 2020


    Date: Saturday, February 15, 2020 @ 22:50:59
  Author: felixonmars
Revision: 571955

upgpkg: haskell-math-functions 0.3.3.0-5: rebuild pass 1, specified --nocheck

Modified:
  haskell-math-functions/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-15 22:47:09 UTC (rev 571954)
+++ PKGBUILD	2020-02-15 22:50:59 UTC (rev 571955)
@@ -4,7 +4,7 @@
 _hkgname=math-functions
 pkgname=haskell-math-functions
 pkgver=0.3.3.0
-pkgrel=4
+pkgrel=5
 pkgdesc="Special functions and Chebyshev polynomials"
 url="https://github.com/bos/math-functions"
 license=("BSD")
@@ -18,9 +18,15 @@
 
 build() {
     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 \
             -f-system-expm1
     runhaskell Setup build



More information about the arch-commits mailing list