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

Felix Yan felixonmars at archlinux.org
Tue May 28 21:51:16 UTC 2019


    Date: Tuesday, May 28, 2019 @ 21:51:15
  Author: felixonmars
Revision: 473103

upgpkg: haskell-base-orphans 0.8.1-11

rebuild pass 1, specified --nocheck

Modified:
  haskell-base-orphans/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-05-28 21:47:32 UTC (rev 473102)
+++ PKGBUILD	2019-05-28 21:51:15 UTC (rev 473103)
@@ -4,7 +4,7 @@
 _hkgname=base-orphans
 pkgname=haskell-base-orphans
 pkgver=0.8.1
-pkgrel=10
+pkgrel=11
 pkgdesc="Backwards-compatible orphan instances for base"
 url="https://github.com/haskell-compat/base-orphans#readme"
 license=("MIT")
@@ -17,8 +17,14 @@
 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
     runhaskell Setup build
     runhaskell Setup register --gen-script



More information about the arch-commits mailing list