[arch-commits] Commit in haskell-random/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Aug 24 21:26:29 UTC 2020
Date: Monday, August 24, 2020 @ 21:26:29
Author: felixonmars
Revision: 687823
upgpkg: haskell-random 1.2.0-2: rebuild pass 1, specified --nocheck
Modified:
haskell-random/trunk/PKGBUILD
----------+
PKGBUILD | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-08-24 21:13:50 UTC (rev 687822)
+++ PKGBUILD 2020-08-24 21:26:29 UTC (rev 687823)
@@ -4,28 +4,35 @@
_hkgname=random
pkgname=haskell-random
pkgver=1.2.0
-pkgrel=1
+pkgrel=2
pkgdesc="Pseudo-random number generation"
url="https://hackage.haskell.org/package/${_hkgname}"
license=('BSD')
arch=('x86_64')
depends=('ghc-libs' 'haskell-splitmix')
-makedepends=('ghc' 'haskell-doctest' 'haskell-mwc-random' 'haskell-primitive' 'haskell-smallcheck'
- 'haskell-tasty' 'haskell-tasty-expected-failure' 'haskell-tasty-hunit'
- 'haskell-tasty-smallcheck' 'haskell-unliftio' 'haskell-vector')
+makedepends=('ghc')
+checkdepends=('haskell-doctest' 'haskell-mwc-random' 'haskell-primitive' 'haskell-smallcheck'
+ 'haskell-tasty' 'haskell-tasty-hunit' 'haskell-tasty-smallcheck' 'haskell-unliftio'
+ 'haskell-vector')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
sha512sums=('e482f318c245d87824d440885c4ecbd1c9bd85a3b3aa4d7fbb4a82da0cfd31749caa9ff7881c94b731035133fd1d550a0cb8bd4da958d3c72519bddcadc6c2e5')
prepare() {
cd $_hkgname-$pkgver
- sed -i 's/<0.12/<1/' $_hkgname.cabal
+ sed -i '/tasty-expected-failure/d' $_hkgname.cabal
}
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