Date: Sunday, February 16, 2020 @ 15:31:40
  Author: felixonmars
Revision: 572634

upgpkg: haskell-persistent-qq 2.9.1.1-15: rebuild pass 1, specified --nocheck

Modified:
  haskell-persistent-qq/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2020-02-16 14:38:52 UTC (rev 572633)
+++ PKGBUILD    2020-02-16 15:31:40 UTC (rev 572634)
@@ -3,7 +3,7 @@
 _hkgname=persistent-qq
 pkgname=haskell-persistent-qq
 pkgver=2.9.1.1
-pkgrel=14
+pkgrel=15
 pkgdesc="Provides a quasi-quoter for raw SQL for persistent"
 url="https://github.com/yesod-web/persistent";
 license=('MIT')
@@ -16,10 +16,16 @@
 
sha512sums=('3fbdaefe6b5304ca8076b7dae3eab0ac08d624da1e595fcb29e24c2dfae1af376855b67802f0badb5f0b812c9dcda7cbc6e0b6cd26da618b6fe378866a39cd5f')
 
 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

Reply via email to