[arch-commits] Commit in cgrep/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sun Feb 11 11:34:01 UTC 2018


    Date: Sunday, February 11, 2018 @ 11:34:00
  Author: felixonmars
Revision: 292182

archrelease: copy trunk to community-staging-x86_64

Added:
  cgrep/repos/community-staging-x86_64/
  cgrep/repos/community-staging-x86_64/PKGBUILD
    (from rev 292181, cgrep/trunk/PKGBUILD)

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Copied: cgrep/repos/community-staging-x86_64/PKGBUILD (from rev 292181, cgrep/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-02-11 11:34:00 UTC (rev 292182)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=cgrep
+pkgver=6.6.22
+pkgrel=14
+pkgdesc="A context-aware grep for source codes"
+url="http://awgn.github.io/cgrep/"
+license=("GPL2")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-ansi-terminal" "haskell-async" "haskell-cmdargs" "haskell-dlist"
+         "haskell-either" "haskell-mtl" "haskell-regex-base" "haskell-regex-pcre"
+         "haskell-regex-posix" "haskell-safe" "haskell-split" "haskell-stm" "haskell-stringsearch"
+         "haskell-unix-compat" "haskell-unicode-show" "haskell-unordered-containers"
+         "haskell-utf8-string")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('d5504fb9d6da4c1bf3bf59297d4c9084af179657710357df89059f36aa3cba10e65089e425a76b36a26943815cad590e7d174d60f7bf29a2a80293b544fb95b6')
+
+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
+}
+
+package() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    runhaskell Setup copy --destdir="${pkgdir}"
+}



More information about the arch-commits mailing list