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

Felix Yan felixonmars at archlinux.org
Thu Jan 21 23:37:02 UTC 2021


    Date: Thursday, January 21, 2021 @ 23:37:01
  Author: felixonmars
Revision: 824300

upgpkg: haskell-tasty-quickcheck 0.10.1.2-41: rebuild with hspec 2.7.7, hspec-core 2.7.7, hspec-discover 2.7.7 (rebuild pass 1, specified --nocheck)

Modified:
  haskell-tasty-quickcheck/trunk/PKGBUILD

----------+
 PKGBUILD |   15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-01-21 23:24:37 UTC (rev 824299)
+++ PKGBUILD	2021-01-21 23:37:01 UTC (rev 824300)
@@ -4,7 +4,7 @@
 _hkgname=tasty-quickcheck
 pkgname=haskell-tasty-quickcheck
 pkgver=0.10.1.2
-pkgrel=40
+pkgrel=41
 pkgdesc="QuickCheck support for the Tasty test framework."
 url="http://documentup.com/feuerbach/tasty"
 license=("MIT")
@@ -11,15 +11,22 @@
 arch=('x86_64')
 depends=('ghc-libs' 'haskell-optparse-applicative' 'haskell-quickcheck' 'haskell-random'
          'haskell-tagged' 'haskell-tasty')
-makedepends=('ghc' 'haskell-tasty-hunit' 'haskell-pcre-light')
+makedepends=('ghc')
+checkdepends=('haskell-tasty-hunit' 'haskell-pcre-light')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
 sha512sums=('61cdecdf932b32da7b9c0df8249797725fd62fc1380f5b95984543c2757f49103cf3555e5ebbc800fa6457e7ca509ae44f4e7bf54241f8bf6cba05b3cca24a78')
 
 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