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

Felix Yan felixonmars at archlinux.org
Tue Dec 22 20:13:44 UTC 2020


    Date: Tuesday, December 22, 2020 @ 20:13:43
  Author: felixonmars
Revision: 782906

upgpkg: haskell-hspec-core 2.7.4-77: rebuild with tasty-smallcheck 0.8.2 (rebuild pass 1, specified --nocheck)

Modified:
  haskell-hspec-core/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-12-22 20:09:20 UTC (rev 782905)
+++ PKGBUILD	2020-12-22 20:13:43 UTC (rev 782906)
@@ -3,7 +3,7 @@
 _hkgname=hspec-core
 pkgname=haskell-hspec-core
 pkgver=2.7.4
-pkgrel=76
+pkgrel=77
 pkgdesc="A Testing Framework for Haskell"
 url="http://hspec.github.io/"
 license=('MIT')
@@ -11,15 +11,22 @@
 depends=('ghc-libs' 'haskell-ansi-terminal' 'haskell-call-stack' 'haskell-clock'
          'haskell-hspec-expectations' 'haskell-hunit' 'haskell-quickcheck' 'haskell-quickcheck-io'
          'haskell-random' 'haskell-setenv' 'haskell-tf-random')
-makedepends=('ghc' 'haskell-hspec-meta' 'haskell-silently' 'haskell-temporary')
+makedepends=('ghc')
+checkdepends=('haskell-hspec-meta' 'haskell-silently' 'haskell-temporary')
 source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
 sha512sums=('4dae2318ddc2d647ee273ebdbdb349bfdb8883d860681a932347fddcd012c4813c2f412804a9fe78a01d6c62ae4347bfedb7b4d46720c4ab75fb01caea99b6cc')
 
 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 $MAKEFLAGS
     runhaskell Setup register --gen-script



More information about the arch-commits mailing list