Date: Thursday, March 15, 2018 @ 07:31:43 Author: felixonmars Revision: 308226
archrelease: copy trunk to community-staging-x86_64 Added: cgrep/repos/community-staging-x86_64/ cgrep/repos/community-staging-x86_64/PKGBUILD (from rev 308225, cgrep/trunk/PKGBUILD) ----------+ PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) Copied: cgrep/repos/community-staging-x86_64/PKGBUILD (from rev 308225, cgrep/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-03-15 07:31:43 UTC (rev 308226) @@ -0,0 +1,31 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +pkgname=cgrep +pkgver=6.6.23 +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-aeson' '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' 'haskell-yaml') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha512sums=('bb04d46a253036bfbb6d82856b59848519737962852771f9c357f7e5d36744d4c5ca6eef9caf2e45343a7ca435ce8da376f9f7d571ba1b648296543cc2eba155') + +build() { + cd $pkgname-$pkgver + + runhaskell Setup configure -O --prefix=/usr --enable-executable-dynamic --docdir="/usr/share/doc/${pkgname}" + runhaskell Setup build +} + +package() { + cd $pkgname-$pkgver + runhaskell Setup copy --destdir="$pkgdir" +}