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

Felix Yan felixonmars at archlinux.org
Sat Jan 11 01:03:22 UTC 2020


    Date: Saturday, January 11, 2020 @ 01:03:22
  Author: felixonmars
Revision: 551873

upgpkg: haskell-foldl 1.4.6-1: rebuild with ghc 8.8.1, cabal-doctest 1.0.7, polyparse 1.13, primitive 0.7.0.0, regex-base 0.94.0.0, regex-pcre 0.95.0.0, regex-posix 0.96.0.0, regex-tdfa 1.3.1.0, easytest 0.3, unexceptionalio 0.5.0, gtk2hs-buildtools 0.13.8.0, ghc-typelits-natnormalise 0.7, resolv 0.1.1.3, ghc-typelits-knownnat 0.7.1, memory 0.15.0, RSA 2.4.1, foldl 1.4.6

Modified:
  haskell-foldl/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-11 00:57:21 UTC (rev 551872)
+++ PKGBUILD	2020-01-11 01:03:22 UTC (rev 551873)
@@ -3,8 +3,8 @@
 
 _hkgname=foldl
 pkgname=haskell-foldl
-pkgver=1.4.5
-pkgrel=64
+pkgver=1.4.6
+pkgrel=1
 pkgdesc="Composable, streaming, and efficient left folds"
 url="https://hackage.haskell.org/package/${_hkgname}"
 license=("BSD")
@@ -12,13 +12,13 @@
 depends=('ghc-libs' 'haskell-comonad' 'haskell-contravariant' 'haskell-mwc-random'
          'haskell-primitive' 'haskell-profunctors' 'haskell-semigroupoids'
          'haskell-unordered-containers' 'haskell-vector' 'haskell-vector-builder')
-makedepends=('ghc')
+makedepends=('ghc' 'haskell-doctest')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('adc718045f344206bb2e38b92610e643c61a470e294b73331adb58ebe6a3d33f2614634a1750c7e049b3f8def761a43232baee4633cc6bb09b25b7564f3fe1b2')
+sha512sums=('14e708da0ffb4e4720ae181c0209d706278d6652390214f7c6bae791d25e16baffbb56c65293db21f84aaa721ee383927e8498461d037f16813be374b6799d3b')
 
 prepare() {
     cd $_hkgname-$pkgver
-    sed -i -e '/semigroups/d' -e 's/<.*0.14/<1/' -e 's/< *5.4/<6/' $_hkgname.cabal
+    sed -i -e '/semigroups/d' $_hkgname.cabal
 }
 
 build() {
@@ -25,7 +25,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
     runhaskell Setup build
     runhaskell Setup register --gen-script
@@ -34,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