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

Felix Yan felixonmars at archlinux.org
Fri Aug 28 18:45:00 UTC 2020


    Date: Friday, August 28, 2020 @ 18:45:00
  Author: felixonmars
Revision: 691130

upgpkg: haskell-tasty-hedgehog 1.0.0.2-57: rebuild pass 1, specified --nocheck

Modified:
  haskell-tasty-hedgehog/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-08-28 18:44:14 UTC (rev 691129)
+++ PKGBUILD	2020-08-28 18:45:00 UTC (rev 691130)
@@ -3,13 +3,14 @@
 _hkgname=tasty-hedgehog
 pkgname=haskell-tasty-hedgehog
 pkgver=1.0.0.2
-pkgrel=56
+pkgrel=57
 pkgdesc="Integration for tasty and hedgehog"
 url="https://github.com/qfpl/tasty-hedgehog"
 license=('BSD')
 arch=('x86_64')
 depends=('ghc-libs' 'haskell-hedgehog' 'haskell-tagged' 'haskell-tasty')
-makedepends=('ghc' 'haskell-tasty-expected-failure')
+makedepends=('ghc')
+checkdepends=('haskell-tasty-expected-failure')
 source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
 sha512sums=('56ac4db27b97bc6902633ec398bdbae28f6121d818a29fde62ddea4a4619af0fe7b058b55479414a627119a0014f2c84d6b795c86e9e36d21fd25bf1033a9c4b')
 
@@ -20,9 +21,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
     runhaskell Setup build $MAKEFLAGS
     runhaskell Setup register --gen-script



More information about the arch-commits mailing list