[arch-commits] Commit in haskell-lifted-async/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Aug 24 22:31:33 UTC 2020
Date: Monday, August 24, 2020 @ 22:31:33
Author: felixonmars
Revision: 687869
upgpkg: haskell-lifted-async 0.10.1.2-5: rebuild pass 1, specified --nocheck
Modified:
haskell-lifted-async/trunk/PKGBUILD
----------+
PKGBUILD | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-08-24 22:26:50 UTC (rev 687868)
+++ PKGBUILD 2020-08-24 22:31:33 UTC (rev 687869)
@@ -3,7 +3,7 @@
_hkgname=lifted-async
pkgname=haskell-lifted-async
pkgver=0.10.1.2
-pkgrel=4
+pkgrel=5
pkgdesc="Run lifted IO operations asynchronously and wait for their results"
url="https://github.com/maoe/lifted-async"
license=('BSD')
@@ -10,8 +10,9 @@
arch=('x86_64')
depends=('ghc-libs' 'haskell-async' 'haskell-constraints' 'haskell-lifted-base'
'haskell-monad-control' 'haskell-transformers-base')
-makedepends=('ghc' 'haskell-hunit' 'haskell-tasty' 'haskell-tasty-expected-failure'
- 'haskell-tasty-hunit' 'haskell-tasty-th')
+makedepends=('ghc')
+checkdepends=('haskell-hunit' 'haskell-tasty' 'haskell-tasty-expected-failure'
+ 'haskell-tasty-hunit' 'haskell-tasty-th')
source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
sha512sums=('9efbf87786193a90112558ebd09101f30997c6d2f73313c3ae53519c625c8aff47b7979620ea3461378379cae13a4ff74a6933425783b1ccd422db303056228f')
@@ -18,8 +19,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