Date: Wednesday, July 4, 2018 @ 18:22:48 Author: felixonmars Revision: 352027
archrelease: copy trunk to community-staging-x86_64 Added: haskell-resource-pool/repos/community-staging-x86_64/ haskell-resource-pool/repos/community-staging-x86_64/PKGBUILD (from rev 352026, haskell-resource-pool/trunk/PKGBUILD) ----------+ PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) Copied: haskell-resource-pool/repos/community-staging-x86_64/PKGBUILD (from rev 352026, haskell-resource-pool/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-07-04 18:22:48 UTC (rev 352027) @@ -0,0 +1,41 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=resource-pool +pkgname=haskell-resource-pool +pkgver=0.2.3.2 +pkgrel=39 +pkgdesc="A high-performance striped resource pooling implementation" +url="https://github.com/bos/pool" +license=("custom:BSD3") +arch=('x86_64') +depends=('ghc-libs' "haskell-hashable" "haskell-monad-control" + "haskell-transformers-base" "haskell-vector") +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('42b0bb6dea35c08884f65604acc0dd93707b8d4de780c584877e92fbfe534d4f754282e9c9f7257c203f1152d85ac8170f84ee9a95573343d02a774006c4118b') + +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 \ + -f-developer + 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" +}