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

Felix Yan felixonmars at archlinux.org
Sat Feb 15 19:53:15 UTC 2020


    Date: Saturday, February 15, 2020 @ 19:53:14
  Author: felixonmars
Revision: 571827

upgpkg: haskell-vector 0.12.1.2-3: rebuild pass 1, specified --nocheck

Modified:
  haskell-vector/trunk/PKGBUILD

----------+
 PKGBUILD |   11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-15 19:50:07 UTC (rev 571826)
+++ PKGBUILD	2020-02-15 19:53:14 UTC (rev 571827)
@@ -2,7 +2,7 @@
 
 pkgname=haskell-vector
 pkgver=0.12.1.2
-pkgrel=2
+pkgrel=3
 pkgdesc="Efficient Arrays"
 url="https://hackage.haskell.org/package/vector"
 license=("BSD")
@@ -20,8 +20,15 @@
 
 build() {
   cd "$srcdir"/vector-${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