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

Felix Yan felixonmars at archlinux.org
Sun Mar 15 10:41:34 UTC 2020


    Date: Sunday, March 15, 2020 @ 10:41:34
  Author: felixonmars
Revision: 597741

upgpkg: haskell-hashable 1.3.0.0-1: rebuild with hashable 1.3.0.0

Modified:
  haskell-hashable/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-15 10:35:23 UTC (rev 597740)
+++ PKGBUILD	2020-03-15 10:41:34 UTC (rev 597741)
@@ -3,27 +3,23 @@
 
 _hkgname=hashable
 pkgname=haskell-hashable
-pkgver=1.2.7.0
-pkgrel=11
+pkgver=1.3.0.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')
-makedepends=('ghc')
+makedepends=('ghc' 'haskell-hunit' 'haskell-quickcheck' 'haskell-random' 'haskell-test-framework'
+             'haskell-test-framework-hunit' 'haskell-test-framework-quickcheck2')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('41accac8fa38ab5c243caa058deaf31644d4df670520010d0d593e84fd42970f3fe2d4e945a31ac5491050467e843c7bdb299283a4c6d1446dfcbc2dbc58eec7')
+sha512sums=('2ba9b0657ddc6faf8b8be88e79d3c49503dfee3a446fc16bdc851f357afef1b92b443d1582d462cea859e37a16b46ec762b1dcf613458c5a15f800a8fccdb0ac')
 
-prepare() {
-    cd $_hkgname-$pkgver
-    sed -i 's/< *4.12/<5/' $_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 \
             -f-examples
     runhaskell Setup build
@@ -33,6 +29,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