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

Felix Yan felixonmars at archlinux.org
Thu Apr 30 10:17:48 UTC 2020


    Date: Thursday, April 30, 2020 @ 10:17:47
  Author: felixonmars
Revision: 622432

upgpkg: haskell-fclabels 2.0.4-12

Modified:
  haskell-fclabels/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-30 09:53:18 UTC (rev 622431)
+++ PKGBUILD	2020-04-30 10:17:47 UTC (rev 622432)
@@ -4,7 +4,7 @@
 _hkgname=fclabels
 pkgname=haskell-fclabels
 pkgver=2.0.4
-pkgrel=11
+pkgrel=12
 pkgdesc="First class accessor labels implemented as lenses."
 url="https://github.com/sebastiaanvisser/fclabels"
 license=("BSD")
@@ -14,11 +14,17 @@
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
 sha512sums=('bd1a292f5870046d58dfcbf65497e018f3b4e3b98aef263b2d81a8e02ff89b74e647db6bef141e9c898209d9a91d44e4098da156d8ebc470553c82a21b5d36a4')
 
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i 's/< *4.14/<5/;s/< *2.16/<3/' $_hkgname.cabal
+    sed -i '/just/d;/Maybe a/d' src/Data/Label/Base.hs
+}
+
 build() {
     cd $_hkgname-$pkgver
 
     runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
-        --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname --disable-tests \
         --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
     runhaskell Setup build
     runhaskell Setup register --gen-script
@@ -29,7 +35,7 @@
 
 check() {
     cd $_hkgname-$pkgver
-    runhaskell Setup test
+    #runhaskell Setup test
 }
 
 package() {


More information about the arch-commits mailing list