Date: Wednesday, November 29, 2017 @ 12:09:03 Author: felixonmars Revision: 270656
archrelease: copy trunk to community-testing-x86_64 Added: haskell-non-negative/repos/community-testing-x86_64/ haskell-non-negative/repos/community-testing-x86_64/PKGBUILD (from rev 270655, haskell-non-negative/trunk/PKGBUILD) ----------+ PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) Copied: haskell-non-negative/repos/community-testing-x86_64/PKGBUILD (from rev 270655, haskell-non-negative/trunk/PKGBUILD) =================================================================== --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2017-11-29 12:09:03 UTC (rev 270656) @@ -0,0 +1,44 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=non-negative +pkgname=haskell-non-negative +pkgver=0.1.1.2 +pkgrel=1 +pkgdesc="Non-negative numbers" +url="http://code.haskell.org/~thielema/non-negative/" +license=("GPL") +arch=('x86_64') +depends=('ghc-libs' 'haskell-quickcheck' 'haskell-utility-ht') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('2c5c36efe3f819d8cc386f8c71e1dbfdd382c6383ed26050ce9191f6c6e6f29996d7b0c19bae97fa4459a4311f7d8472f324ae53d61efb0fea248f76e7f5b775') + +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 \ + -fsplitbase + 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}" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" +}