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

Felix Yan felixonmars at archlinux.org
Sun Dec 24 07:09:22 UTC 2017


    Date: Sunday, December 24, 2017 @ 07:09:17
  Author: felixonmars
Revision: 275670

upgpkg: haskell-uri-bytestring 0.3.0.2-1

rebuild with uri-bytestring,0.3.0.2

Modified:
  haskell-uri-bytestring/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-24 07:07:21 UTC (rev 275669)
+++ PKGBUILD	2017-12-24 07:09:17 UTC (rev 275670)
@@ -3,16 +3,18 @@
 
 _hkgname=uri-bytestring
 pkgname=haskell-uri-bytestring
-pkgver=0.3.0.1
-pkgrel=2
+pkgver=0.3.0.2
+pkgrel=1
 pkgdesc="Haskell URI parsing as ByteStrings"
 url="https://github.com/Soostone/uri-bytestring"
 license=('custom:BSD3')
 arch=('x86_64')
 depends=('ghc-libs' 'haskell-attoparsec' 'haskell-blaze-builder' 'haskell-th-lift-instances')
-makedepends=('ghc')
+makedepends=('ghc' 'haskell-hunit' 'haskell-quickcheck' 'haskell-tasty' 'haskell-tasty-hunit'
+             'haskell-tasty-quickcheck' 'haskell-base-compat' 'haskell-quickcheck-instances'
+             'haskell-semigroups' 'haskell-generics-sop')
 source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
-sha512sums=('6300930fb243c8b023b92eff1b3042dfa8bd0db397669537793c40c2124a711ff20ba23b5646e8e73d49b9c7a86a3264f6cf3685ba5379b6b4f5b1c327d01d96')
+sha512sums=('1f058d6549283a160c52a77532b2769eca54b9d4e209a0cc5541127409e069e8aa86dba2f471149aaba6db2fdb09b3cd910b563a0700314bfcf557d61cf01fca')
 
 prepare() {
     sed -i '/fail/d' ${_hkgname}-${pkgver}/${_hkgname}.cabal
@@ -22,7 +24,7 @@
     cd "${srcdir}/${_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-lib-Werror
     runhaskell Setup build
@@ -32,6 +34,11 @@
     sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
 }
 
+check() {
+    cd $_hkgname-$pkgver
+    runhaskell Setup test
+}
+
 package() {
     cd "${srcdir}/${_hkgname}-${pkgver}"
 



More information about the arch-commits mailing list