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

Felix Yan felixonmars at archlinux.org
Thu Dec 28 13:03:34 UTC 2017


    Date: Thursday, December 28, 2017 @ 13:03:31
  Author: felixonmars
Revision: 276396

upgpkg: haskell-text 1.2.3.0-1

rebuild with text,1.2.3.0

Modified:
  haskell-text/trunk/PKGBUILD

----------+
 PKGBUILD |   23 +++++++++++++++++------
 1 file changed, 17 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-28 12:39:43 UTC (rev 276395)
+++ PKGBUILD	2017-12-28 13:03:31 UTC (rev 276396)
@@ -4,22 +4,28 @@
 
 _hkgname=text
 pkgname=haskell-text
-pkgver=1.2.2.2
-pkgrel=5
+pkgver=1.2.3.0
+pkgrel=1
 pkgdesc="An efficient packed Unicode text type."
 url="https://hackage.haskell.org/package/${_hkgname}"
 license=('custom:BSD2')
 arch=('x86_64')
-depends=('ghc-libs' 'sh')
-makedepends=('ghc')
+depends=('ghc-libs')
+makedepends=('ghc' 'haskell-hunit' 'haskell-quickcheck' 'haskell-quickcheck-unicode'
+             '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=('aec56364559fa3cf4a530a26abb94889ec4f690ecd8e79a6617805306c78e0d04eae9a1d808af93fd7506ad373f5cf2ce27be27482aa518dc7f52f9e6c753280')
+sha512sums=('7533a185a1e8a9c14cdec6b20ddeb51b7b858afff4d749c38e61b8745239b525b2a032111ab3f12030466c03c373d5b542073f5457c200db5b579c6c97d2d9db')
 
+prepare() {
+    sed -i 's/QuickCheck >= 2.7 && < 2.10,/QuickCheck >= 2.7,/' $_hkgname-$pkgver/$_hkgname.cabal
+}
+
 build() {
     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-developer -f-integer-simple -f-bytestring-builder
     runhaskell Setup build
@@ -29,6 +35,11 @@
     sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
 }
 
+check() {
+    cd $_hkgname-$pkgver
+    LC_CTYPE=en_US.UTF-8 runhaskell Setup test || warning "Tests failed"
+}
+
 package() {
     cd "${srcdir}/${_hkgname}-${pkgver}"
     



More information about the arch-commits mailing list