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

Felix Yan felixonmars at archlinux.org
Mon Feb 18 16:04:25 UTC 2019


    Date: Monday, February 18, 2019 @ 16:04:24
  Author: felixonmars
Revision: 434264

upgpkg: haskell-equivalence 0.3.4-1

rebuild with equivalence 0.3.4

Modified:
  haskell-equivalence/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++++++++++++++-----
 1 file changed, 16 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-02-18 15:59:38 UTC (rev 434263)
+++ PKGBUILD	2019-02-18 16:04:24 UTC (rev 434264)
@@ -3,22 +3,28 @@
 
 _hkgname=equivalence
 pkgname=haskell-equivalence
-pkgver=0.3.3
-pkgrel=4
+pkgver=0.3.4
+pkgrel=1
 pkgdesc="Maintaining an equivalence relation implemented as union-find using STT."
 url="https://bitbucket.org/paba/equivalence/"
 license=("BSD")
 arch=('x86_64')
 depends=('ghc-libs' "haskell-stmonadtrans" "haskell-transformers-compat")
-makedepends=('ghc')
+makedepends=('ghc' 'haskell-quickcheck' 'haskell-test-framework'
+             'haskell-test-framework-quickcheck2')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('31023163a9107257e655b69834e19f4e2cf9777bbff040c81aa4695ab6cf3c894797deaa7e9a297094c21289247fa57d43b1fe770e81ae72ca163d71dd772f93')
+sha512sums=('1333b0d75be8d2211bbc406b9768df3e8e94596b44dc18d8155a1a34615bce21de15176fbb76a2da2fee7d41c85caa63e03593aa3eda5d6d0fd2c865a23027ce')
 
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i -e 's/, fail//' -e '/fail/d' $_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
     runhaskell Setup register --gen-script
@@ -27,6 +33,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