[arch-commits] Commit in haskell-fclabels/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed May 20 15:59:14 UTC 2020
Date: Wednesday, May 20, 2020 @ 15:59:13
Author: felixonmars
Revision: 630854
upgpkg: haskell-fclabels 2.0.4-14: rebuild with fclabels 2.0.4 (with correct patch for template-haskell 2.16)
Modified:
haskell-fclabels/trunk/PKGBUILD
----------+
PKGBUILD | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-05-20 15:55:55 UTC (rev 630853)
+++ PKGBUILD 2020-05-20 15:59:13 UTC (rev 630854)
@@ -4,7 +4,7 @@
_hkgname=fclabels
pkgname=haskell-fclabels
pkgver=2.0.4
-pkgrel=13
+pkgrel=14
pkgdesc="First class accessor labels implemented as lenses."
url="https://github.com/sebastiaanvisser/fclabels"
license=("BSD")
@@ -11,13 +11,15 @@
arch=('x86_64')
depends=('ghc-libs' 'haskell-base-orphans')
makedepends=('ghc' 'haskell-hunit')
-source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('bd1a292f5870046d58dfcbf65497e018f3b4e3b98aef263b2d81a8e02ff89b74e647db6bef141e9c898209d9a91d44e4098da156d8ebc470553c82a21b5d36a4')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"
+ fclabels-template-haskell-2.16.patch::https://github.com/sebastiaanvisser/fclabels/pull/41.patch)
+sha512sums=('bd1a292f5870046d58dfcbf65497e018f3b4e3b98aef263b2d81a8e02ff89b74e647db6bef141e9c898209d9a91d44e4098da156d8ebc470553c82a21b5d36a4'
+ 'b861939d19bbcb895eef3e38bdf5e1faa47163a4626964f8096010cd3863c8722bda3e444e57059368a80f0395189b147f87b98fc3ffd8711b63313e38e01547')
prepare() {
cd $_hkgname-$pkgver
+ patch -p1 -i ../fclabels-template-haskell-2.16.patch
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() {
@@ -26,7 +28,7 @@
runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
--prefix=/usr --docdir=/usr/share/doc/$pkgname --disable-tests \
--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
- runhaskell Setup build
+ runhaskell Setup build $MAKEFLAGS
runhaskell Setup register --gen-script
runhaskell Setup unregister --gen-script
sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
More information about the arch-commits
mailing list