Date: Tuesday, February 27, 2018 @ 11:42:14 Author: felixonmars Revision: 299209
archrelease: copy trunk to community-staging-x86_64 Added: haskell-store/repos/community-staging-x86_64/ haskell-store/repos/community-staging-x86_64/PKGBUILD (from rev 299208, haskell-store/trunk/PKGBUILD) ----------+ PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) Copied: haskell-store/repos/community-staging-x86_64/PKGBUILD (from rev 299208, haskell-store/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-02-27 11:42:14 UTC (rev 299209) @@ -0,0 +1,46 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=store +pkgname=haskell-store +pkgver=0.4.3.2 +pkgrel=62 +pkgdesc="Fast binary serialization" +url="https://github.com/fpco/store" +license=('custom:BSD3') +arch=('x86_64') +depends=('ghc-libs' 'haskell-async' 'haskell-base-orphans' 'haskell-base64-bytestring' + 'haskell-conduit' 'haskell-contravariant' 'haskell-cryptohash' 'haskell-free' + 'haskell-hashable' 'haskell-hspec' 'haskell-hspec-smallcheck' 'haskell-lifted-base' + 'haskell-monad-control' 'haskell-mono-traversable' 'haskell-network' 'haskell-primitive' + 'haskell-resourcet' 'haskell-safe' 'haskell-semigroups' 'haskell-smallcheck' + 'haskell-streaming-commons' 'haskell-store-core' 'haskell-syb' 'haskell-text' + 'haskell-th-lift' 'haskell-th-lift-instances' 'haskell-th-orphans' 'haskell-th-reify-many' + 'haskell-th-utilities' 'haskell-unordered-containers' 'haskell-vector' 'haskell-void') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('0faa8b71cd2a078e989fb0da428d0f78cf2a7c85fb11584949e47e8a20f5f0f919d7ad82de1f6ce1e1ac33098179adc382dedb04c75db64f2654eeab60fdbb9d') + +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-comparison-bench -f-small-bench + 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" +}