[arch-commits] Commit in haskell-hashtables/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Tue Sep 8 22:33:11 UTC 2020


    Date: Tuesday, September 8, 2020 @ 22:33:11
  Author: felixonmars
Revision: 701402

upgpkg: haskell-hashtables 1.2.4.0-1: rebuild with hashtables 1.2.4.0

Modified:
  haskell-hashtables/trunk/PKGBUILD

----------+
 PKGBUILD |   22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-08 22:27:32 UTC (rev 701401)
+++ PKGBUILD	2020-09-08 22:33:11 UTC (rev 701402)
@@ -3,22 +3,29 @@
 
 _hkgname=hashtables
 pkgname=haskell-hashtables
-pkgver=1.2.3.4
-pkgrel=37
+pkgver=1.2.4.0
+pkgrel=1
 pkgdesc="Mutable hash tables in the ST monad"
 url="https://hackage.haskell.org/package/${_hkgname}"
 license=('BSD')
 arch=('x86_64')
 depends=('ghc-libs' 'sh' 'haskell-hashable' 'haskell-primitive' 'haskell-vector')
-makedepends=('ghc')
+makedepends=('ghc' 'haskell-mwc-random' 'haskell-quickcheck' 'haskell-hunit'
+             'haskell-test-framework' 'haskell-test-framework-quickcheck2'
+             'haskell-test-framework-hunit')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('4723540f930edd1d5fd5cf58eadf7ed24fcd7761b90f303d559bc617737ec30cee2e9571ecced61fd369a933ae95b4386e48b122b876e73d0ad4bb65df16b76e')
+sha512sums=('4b4aa28d5d515252f1c8629a094b752bc35a0172221bb81b7a770e1c51db44a481c11b6f9cbc00dcb042e440b379e1e6208e1990d1abeca3ae237a8d7e18bb83')
 
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i 's/< *0.14/<1/;s/< *1.3/<2/' $_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