[arch-commits] Commit in haskell-primitive/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Aug 17 15:04:58 UTC 2020
Date: Monday, August 17, 2020 @ 15:04:58
Author: felixonmars
Revision: 682670
upgpkg: haskell-primitive 0.7.1.0-6: rebuild pass 1, specified --nocheck
Modified:
haskell-primitive/trunk/PKGBUILD
----------+
PKGBUILD | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-08-17 15:02:06 UTC (rev 682669)
+++ PKGBUILD 2020-08-17 15:04:58 UTC (rev 682670)
@@ -3,15 +3,16 @@
pkgname=haskell-primitive
pkgver=0.7.1.0
-pkgrel=5
+pkgrel=6
pkgdesc="Wrappers for primitive operations"
url="https://hackage.haskell.org/package/primitive"
license=("BSD")
arch=('x86_64')
depends=('ghc-libs')
-makedepends=('ghc' 'haskell-base-orphans' 'haskell-quickcheck' 'haskell-quickcheck-classes-base'
- 'haskell-tasty' 'haskell-tasty-quickcheck' 'haskell-tagged'
- 'haskell-transformers-compat')
+makedepends=('ghc')
+checkdepends=('haskell-base-orphans' 'haskell-quickcheck' 'haskell-quickcheck-classes-base'
+ 'haskell-tasty' 'haskell-tasty-quickcheck' 'haskell-tagged'
+ 'haskell-transformers-compat')
source=("https://hackage.haskell.org/packages/archive/primitive/${pkgver}/primitive-${pkgver}.tar.gz")
sha512sums=('8ade11d0b2221cfdf042da0263b5b5367a7ca2a9b9e1141844e4a65bb0467df879c92cd3515440d715b59345860c1ec3cb3efd7a3d702269ea15e18692586367')
@@ -22,8 +23,15 @@
build() {
cd primitive-$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