[arch-commits] Commit in haskell-random/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Aug 24 18:10:35 UTC 2020
Date: Monday, August 24, 2020 @ 18:10:34
Author: felixonmars
Revision: 687636
upgpkg: haskell-random 1.2.0-1: rebuild with random 1.2.0
Modified:
haskell-random/trunk/PKGBUILD
----------+
PKGBUILD | 26 +++++++++++++++++++-------
1 file changed, 19 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-08-24 18:05:30 UTC (rev 687635)
+++ PKGBUILD 2020-08-24 18:10:34 UTC (rev 687636)
@@ -3,22 +3,29 @@
_hkgname=random
pkgname=haskell-random
-pkgver=1.1
-pkgrel=22
-pkgdesc="random number library"
+pkgver=1.2.0
+pkgrel=1
+pkgdesc="Pseudo-random number generation"
url="https://hackage.haskell.org/package/${_hkgname}"
license=('BSD')
arch=('x86_64')
-depends=('ghc-libs' 'sh')
-makedepends=('ghc')
+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')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('7f128b1c88adfe7ee6405578d3c999bb77e9e3c21e16f82a5197c0ad1d6731851e99e08d8169c6a8b1068ad8a1614c1c0ef8c04c1958337a6e325f1de0c718a3')
+sha512sums=('e482f318c245d87824d440885c4ecbd1c9bd85a3b3aa4d7fbb4a82da0cfd31749caa9ff7881c94b731035133fd1d550a0cb8bd4da958d3c72519bddcadc6c2e5')
+prepare() {
+ cd $_hkgname-$pkgver
+ sed -i 's/<0.12/<1/' $_hkgname.cabal
+}
+
build() {
cd $_hkgname-$pkgver
runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
- --prefix=/usr --docdir=/usr/share/doc/$pkgname \
+ --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
runhaskell Setup build $MAKEFLAGS
runhaskell Setup register --gen-script
@@ -27,6 +34,11 @@
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test
+}
+
package() {
cd $_hkgname-$pkgver
More information about the arch-commits
mailing list