Date: Thursday, December 28, 2017 @ 14:41:28 Author: felixonmars Revision: 276459
archrelease: copy trunk to community-staging-x86_64 Added: haskell-parsec/repos/community-staging-x86_64/ haskell-parsec/repos/community-staging-x86_64/PKGBUILD (from rev 276458, haskell-parsec/trunk/PKGBUILD) ----------+ PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) Copied: haskell-parsec/repos/community-staging-x86_64/PKGBUILD (from rev 276458, haskell-parsec/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2017-12-28 14:41:28 UTC (rev 276459) @@ -0,0 +1,37 @@ +# Maintainer: Thomas Dziedzic <gos...@gmail.com> + +_hkgname=parsec +pkgname=haskell-parsec +pkgver=3.1.11 +pkgrel=8 +pkgdesc="Monadic parser combinators" +url="https://hackage.haskell.org/package/${_hkgname}" +license=('custom:BSD3') +arch=('x86_64') +depends=('ghc-libs' 'sh' 'haskell-mtl' 'haskell-text') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('f913c172295b184fc118a59ad5fd66c35133885c39aac62239fc3a1aa98b4741465f67d0cffafc1706262ada42259a4694bfbb9175a399997e5b8840da4a809f') + +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" +}