[arch-commits] Commit in haskell-base-compat-batteries/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sat Jun 8 16:41:12 UTC 2019
Date: Saturday, June 8, 2019 @ 16:41:12
Author: felixonmars
Revision: 478273
upgpkg: haskell-base-compat-batteries 0.10.5-15
rebuild pass 1, specified --nocheck
Modified:
haskell-base-compat-batteries/trunk/PKGBUILD
----------+
PKGBUILD | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-06-08 16:32:59 UTC (rev 478272)
+++ PKGBUILD 2019-06-08 16:41:12 UTC (rev 478273)
@@ -3,21 +3,28 @@
_hkgname=base-compat-batteries
pkgname=haskell-base-compat-batteries
pkgver=0.10.5
-pkgrel=14
+pkgrel=15
pkgdesc="base-compat with extra batteries"
url="https://hackage.haskell.org/package/base-compat-batteries"
license=('MIT')
arch=('x86_64')
depends=('ghc-libs' 'haskell-base-compat')
-makedepends=('ghc' 'haskell-hspec' 'haskell-hspec-discover' 'haskell-quickcheck')
+makedepends=('ghc')
+checkdepends=('haskell-hspec' 'haskell-hspec-discover' 'haskell-quickcheck')
source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
sha512sums=('6f8ebbad8ca5ae54257e9637d36eec48887cfae2e34d0a78339993f63f68419cc86fb031f1d955f129416cf0913e34f243aafe272fcbc5b8b6b43835f898df7f')
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
runhaskell Setup register --gen-script
More information about the arch-commits
mailing list