Date: Sunday, February 11, 2018 @ 05:13:56 Author: felixonmars Revision: 291758
archrelease: copy trunk to community-staging-x86_64 Added: haskell-memory/repos/community-staging-x86_64/ haskell-memory/repos/community-staging-x86_64/PKGBUILD (from rev 291757, haskell-memory/trunk/PKGBUILD) ----------+ PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) Copied: haskell-memory/repos/community-staging-x86_64/PKGBUILD (from rev 291757, haskell-memory/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-02-11 05:13:56 UTC (rev 291758) @@ -0,0 +1,45 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=memory +pkgname=haskell-memory +pkgver=0.14.14 +pkgrel=2 +pkgdesc="memory and related abstraction stuff" +url="https://github.com/vincenthz/hs-memory" +license=("custom:BSD3") +arch=('x86_64') +depends=('ghc-libs' 'haskell-basement' 'haskell-foundation') +makedepends=('ghc' 'haskell-tasty' 'haskell-tasty-quickcheck' 'haskell-tasty-hunit') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('904cd23a1828c5821849d27ca7caac2338b846b72de6ee6bb8fd119ec7fd34830f73dd29bf6d567afa452e2ea833118014abda27e8c88bd93649562246963531') + +build() { + cd "${srcdir}/${_hkgname}-${pkgver}" + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ + -fsupport_deepseq -fsupport_bytestring -fsupport_foundation + 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 +} + +check() { + cd $_hkgname-$pkgver + runhaskell Setup test +} + +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" +}