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

Felix Yan felixonmars at archlinux.org
Tue Dec 22 19:51:10 UTC 2020


    Date: Tuesday, December 22, 2020 @ 19:51:10
  Author: felixonmars
Revision: 782860

upgpkg: haskell-bifunctors 5.5.8-18: rebuild with tasty-smallcheck 0.8.2 (rebuild pass 1, specified --nocheck)

Modified:
  haskell-bifunctors/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-12-22 19:49:04 UTC (rev 782859)
+++ PKGBUILD	2020-12-22 19:51:10 UTC (rev 782860)
@@ -4,7 +4,7 @@
 _hkgname=bifunctors
 pkgname=haskell-bifunctors
 pkgver=5.5.8
-pkgrel=17
+pkgrel=18
 pkgdesc="Bifunctors"
 url="https://github.com/ekmett/bifunctors/"
 license=("BSD")
@@ -11,7 +11,8 @@
 arch=('x86_64')
 depends=('ghc-libs' 'haskell-base-orphans' 'haskell-comonad' 'haskell-tagged'
          'haskell-th-abstraction')
-makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck')
+makedepends=('ghc')
+checkdepends=('haskell-hspec' 'haskell-quickcheck')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
 sha512sums=('8475e90b78e16c277c31337d93f427c0960c5446329960083b90dc7a998df456b384791a9cd24e74e2bf65356b893e79942eb8c8bd76797bd6e7356b49c2b1d6')
 
@@ -18,8 +19,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 \
             -ftagged -f-semigroups
     runhaskell Setup build $MAKEFLAGS



More information about the arch-commits mailing list