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

Felix Yan felixonmars at archlinux.org
Mon Aug 17 14:59:28 UTC 2020


    Date: Monday, August 17, 2020 @ 14:59:27
  Author: felixonmars
Revision: 682664

upgpkg: haskell-hashable 1.3.0.0-13: rebuild pass 1, specified --nocheck

Modified:
  haskell-hashable/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-08-17 14:58:16 UTC (rev 682663)
+++ PKGBUILD	2020-08-17 14:59:27 UTC (rev 682664)
@@ -4,13 +4,14 @@
 _hkgname=hashable
 pkgname=haskell-hashable
 pkgver=1.3.0.0
-pkgrel=12
+pkgrel=13
 pkgdesc="Mutable hash tables in the ST monad"
 url="https://hackage.haskell.org/package/${_hkgname}"
 license=('BSD')
 arch=('x86_64')
 depends=('ghc-libs' 'sh')
-makedepends=('ghc' 'haskell-hunit' 'haskell-quickcheck' 'haskell-random' 'haskell-test-framework'
+makedepends=('ghc')
+checkdepends=('haskell-hunit' 'haskell-quickcheck' 'haskell-random' 'haskell-test-framework'
              'haskell-test-framework-hunit' 'haskell-test-framework-quickcheck2')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
 sha512sums=('2ba9b0657ddc6faf8b8be88e79d3c49503dfee3a446fc16bdc851f357afef1b92b443d1582d462cea859e37a16b46ec762b1dcf613458c5a15f800a8fccdb0ac')
@@ -22,9 +23,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-examples
     runhaskell Setup build $MAKEFLAGS



More information about the arch-commits mailing list