Date: Sunday, March 4, 2018 @ 04:10:56 Author: felixonmars Revision: 302295
archrelease: copy trunk to community-staging-x86_64 Added: haskell-pipes/repos/community-staging-x86_64/ haskell-pipes/repos/community-staging-x86_64/PKGBUILD (from rev 302294, haskell-pipes/trunk/PKGBUILD) ----------+ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) Copied: haskell-pipes/repos/community-staging-x86_64/PKGBUILD (from rev 302294, haskell-pipes/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-03-04 04:10:56 UTC (rev 302295) @@ -0,0 +1,40 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=pipes +pkgname=haskell-pipes +pkgver=4.3.8 +pkgrel=1 +pkgdesc="Compositional pipelines" +url="https://hackage.haskell.org/package/${_hkgname}" +license=("custom:BSD3") +arch=('x86_64') +depends=('ghc-libs' "haskell-exceptions" "haskell-mmorph" "haskell-mtl" "haskell-semigroups" + "haskell-void") +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('70b2579976958605b30aa6424e9d1f6cd726fc7980ef85fb463628a3a85c29dd93e4fcd732cb20e9485d8645e3f6295d465d0dabe94c85b8a3e4f1955e68da16') + +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 + runhaskell Setup build + runhaskell Setup register --gen-script + runhaskell Setup unregister --gen-script + sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh + sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh +} + +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}" + install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" +}