[arch-commits] Commit in haskell-network-uri/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sat Feb 15 14:01:13 UTC 2020
Date: Saturday, February 15, 2020 @ 14:01:13
Author: felixonmars
Revision: 571515
upgpkg: haskell-network-uri 2.6.2.0-4: rebuild pass 1, specified --nocheck
Modified:
haskell-network-uri/trunk/PKGBUILD
----------+
PKGBUILD | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-02-15 13:39:37 UTC (rev 571514)
+++ PKGBUILD 2020-02-15 14:01:13 UTC (rev 571515)
@@ -3,7 +3,7 @@
_hkgname=network-uri
pkgname=haskell-network-uri
pkgver=2.6.2.0
-pkgrel=3
+pkgrel=4
pkgdesc="A library for client-side HTTP"
url="https://hackage.haskell.org/package/${_hkgname}"
license=('BSD')
@@ -16,9 +16,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
runhaskell Setup register --gen-script
More information about the arch-commits
mailing list