[arch-commits] Commit in haskell-trifecta/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Dec 7 14:40:29 UTC 2017
Date: Thursday, December 7, 2017 @ 14:40:27
Author: felixonmars
Revision: 273065
upgpkg: haskell-trifecta 1.7.1.1-14
rebuild with ansi-terminal,0.7.1.1 stack,1.6.1
Modified:
haskell-trifecta/trunk/PKGBUILD
----------+
PKGBUILD | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-12-07 14:06:14 UTC (rev 273064)
+++ PKGBUILD 2017-12-07 14:40:27 UTC (rev 273065)
@@ -5,7 +5,7 @@
_hkgname=trifecta
pkgname=haskell-trifecta
pkgver=1.7.1.1
-pkgrel=13
+pkgrel=14
pkgdesc="A modern parser combinator library with convenient diagnostics"
url="https://github.com/ekmett/trifecta/"
license=("custom:BSD3")
@@ -19,9 +19,13 @@
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
sha512sums=('5da4e04be3f4f02220aa730b830a50b9a5df243815d6e00051beb7274af3bc78e50cf70747e3e1f448b2966d1c3051ab589e7d99a0432620390c6193d034a602')
+prepare() {
+ sed -i 's/ansi-terminal >= 0.6 && < 0.7,/ansi-terminal >= 0.6,/' $_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}" \
--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
@@ -34,7 +38,7 @@
package() {
cd "${srcdir}/${_hkgname}-${pkgver}"
-
+
install -D -m744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh"
install -D -m744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh"
runhaskell Setup copy --destdir="${pkgdir}"
More information about the arch-commits
mailing list