Date: Wednesday, May 16, 2018 @ 20:10:33 Author: felixonmars Revision: 323213
archrelease: copy trunk to community-staging-x86_64 Added: haskell-psqueues/repos/community-staging-x86_64/ haskell-psqueues/repos/community-staging-x86_64/PKGBUILD (from rev 323212, haskell-psqueues/trunk/PKGBUILD) ----------+ PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) Copied: haskell-psqueues/repos/community-staging-x86_64/PKGBUILD (from rev 323212, haskell-psqueues/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-05-16 20:10:33 UTC (rev 323213) @@ -0,0 +1,45 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=psqueues +pkgname=haskell-psqueues +pkgver=0.2.7.0 +pkgrel=2 +pkgdesc="Pure priority search queues" +url="https://hackage.haskell.org/package/${_hkgname}" +license=("custom:BSD3") +arch=('x86_64') +depends=('ghc-libs' 'haskell-hashable') +makedepends=('ghc' 'haskell-hunit' 'haskell-quickcheck' 'haskell-tagged' 'haskell-test-framework' + 'haskell-test-framework-hunit' 'haskell-test-framework-quickcheck2') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('f947c6bd357aa89c386ac093e036dd766260257a69f542ed0db0e860bf40dc12d9932a2c79f9074a7a5e500b27298be5f2ce993bd524287d6fbac6bed3fc4f1b') + +build() { + cd $_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 + 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 $_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" +}