Date: Friday, March 9, 2018 @ 14:54:33 Author: felixonmars Revision: 305277
archrelease: copy trunk to community-staging-x86_64 Added: haskell-quickcheck-instances/repos/community-staging-x86_64/ haskell-quickcheck-instances/repos/community-staging-x86_64/PKGBUILD (from rev 305276, haskell-quickcheck-instances/trunk/PKGBUILD) ----------+ PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) Copied: haskell-quickcheck-instances/repos/community-staging-x86_64/PKGBUILD (from rev 305276, haskell-quickcheck-instances/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-03-09 14:54:33 UTC (rev 305277) @@ -0,0 +1,43 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=quickcheck-instances +pkgname=haskell-quickcheck-instances +pkgver=0.3.18 +pkgrel=1 +pkgdesc="Common quickcheck instances" +url="https://github.com/phadej/qc-instances" +license=("custom:BSD3") +arch=('x86_64') +depends=('ghc-libs' 'haskell-quickcheck' 'haskell-base-compat' 'haskell-case-insensitive' + 'haskell-hashable' 'haskell-old-time' 'haskell-scientific' 'haskell-tagged' 'haskell-text' + 'haskell-transformers-compat' 'haskell-unordered-containers' 'haskell-uuid-types' + 'haskell-vector') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('f3b5a7ebad823f6374c718bc6519081fdb92bd9733f6bcf56b62557d5ce7a9d159fe8d3cf75b168dbbf9313835d882febb9bb40e8158a8028be9b8e4c4e247d1') + +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-bytestring-builder + 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" +}