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

Felix Yan felixonmars at archlinux.org
Sun Dec 20 10:35:56 UTC 2020


    Date: Sunday, December 20, 2020 @ 10:35:55
  Author: felixonmars
Revision: 780252

upgpkg: haskell-unliftio 0.2.13.1-16: rebuild with tasty-hunit 0.10.0.3 (rebuild pass 1, specified --nocheck)

Modified:
  haskell-unliftio/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-12-20 09:36:23 UTC (rev 780251)
+++ PKGBUILD	2020-12-20 10:35:55 UTC (rev 780252)
@@ -4,13 +4,14 @@
 _hkgname=unliftio
 pkgname=haskell-unliftio
 pkgver=0.2.13.1
-pkgrel=15
+pkgrel=16
 pkgdesc="The MonadUnliftIO typeclass for unlifting monads to IO (batteries included)"
 url="https://github.com/fpco/monad-unlift"
 license=("MIT")
 arch=('x86_64')
 depends=('ghc-libs' 'haskell-async' 'haskell-unliftio-core')
-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=('726285be714da76b40e2cb3058c7485c85eb5cbf17ade1579724fa277cf97783b7983dd3a91526ac7739b086df096d1f65f3d129e03204e18eccfff52e4332d6')
 
@@ -17,8 +18,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
     runhaskell Setup build $MAKEFLAGS
     runhaskell Setup register --gen-script



More information about the arch-commits mailing list