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

Felix Yan felixonmars at archlinux.org
Thu Dec 10 09:05:13 UTC 2020


    Date: Thursday, December 10, 2020 @ 09:05:13
  Author: felixonmars
Revision: 772982

upgpkg: haskell-tar 0.5.1.1-8: rebuild with tar (tests enabled)

Modified:
  haskell-tar/trunk/PKGBUILD

----------+
 PKGBUILD |   14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-12-10 09:01:18 UTC (rev 772981)
+++ PKGBUILD	2020-12-10 09:05:13 UTC (rev 772982)
@@ -4,19 +4,20 @@
 _hkgname=tar
 pkgname=haskell-tar
 pkgver=0.5.1.1
-pkgrel=7
+pkgrel=8
 pkgdesc="Reading, writing and manipulating \".tar\" archive files."
 url="https://hackage.haskell.org/package/${_hkgname}"
 license=("BSD")
 arch=('x86_64')
 depends=('ghc-libs')
-makedepends=('ghc')
+makedepends=('ghc' 'uusi' 'haskell-bytestring-handle' 'haskell-quickcheck' 'haskell-tasty'
+             'haskell-tasty-quickcheck')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
 sha512sums=('8d0a8d3ae178570e0842a2321a7fc86a6bba28c471ec27bafbc07fc4ac0e4183f8113c99ebc7126dc71759c33083791122be32563fb0d5a2b2d39cb3b36171f2')
 
 prepare() {
     cd $_hkgname-$pkgver
-    sed -i 's/< *4.14/<5/' $_hkgname.cabal
+    uusi -u base -u tasty -u tasty-quickcheck $_hkgname.cabal
 }
 
 build() {
@@ -23,7 +24,7 @@
     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-old-time
     runhaskell Setup build $MAKEFLAGS
@@ -33,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