[arch-commits] Commit in cgrep/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue Nov 28 13:07:37 UTC 2017
Date: Tuesday, November 28, 2017 @ 13:07:35
Author: felixonmars
Revision: 270498
upgpkg: cgrep 6.6.17-22
rebuild with either,5 hasql,1.1.1 hasql-pool,0.4.3 hasql-transaction,0.5.2
Modified:
cgrep/trunk/PKGBUILD
----------+
PKGBUILD | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-11-28 12:46:00 UTC (rev 270497)
+++ PKGBUILD 2017-11-28 13:07:35 UTC (rev 270498)
@@ -4,7 +4,7 @@
pkgname=cgrep
pkgver=6.6.17
-pkgrel=21
+pkgrel=22
pkgdesc="A context-aware grep for source codes"
url="http://awgn.github.io/cgrep/"
license=("GPL2")
@@ -18,9 +18,16 @@
source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha512sums=('382649e70a112614ab270fb287cf289572411b33f3d89f72b855bd0aa515ee17d7589f019446b3cdd5024b4cbde4272c955520abe0bcf7f92890f575a937635d')
+prepare() {
+ sed -e 's/Either/Except/' \
+ -e 's/left/throwError/' \
+ -e '/import Data.List/a import Control.Monad.Error.Class (throwError)' \
+ -i $pkgname-$pkgver/src/Main.hs
+}
+
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
-
+
runhaskell Setup configure -O --prefix=/usr --enable-executable-dynamic --docdir="/usr/share/doc/${pkgname}"
runhaskell Setup build
}
More information about the arch-commits
mailing list