Date: Monday, September 2, 2019 @ 07:18:31 Author: felixonmars Revision: 506728
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 506727, haskell-quickcheck-instances/trunk/PKGBUILD) ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) Copied: haskell-quickcheck-instances/repos/community-staging-x86_64/PKGBUILD (from rev 506727, haskell-quickcheck-instances/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2019-09-02 07:18:31 UTC (rev 506728) @@ -0,0 +1,42 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=quickcheck-instances +pkgname=haskell-quickcheck-instances +pkgver=0.3.22 +pkgrel=4 +pkgdesc="Common quickcheck instances" +url="https://github.com/phadej/qc-instances" +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-quickcheck' 'haskell-base-compat' 'haskell-case-insensitive' + 'haskell-hashable' 'haskell-old-time' 'haskell-scientific' 'haskell-splitmix' + 'haskell-tagged' 'haskell-time-compat' '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=('cd36e6833752fbc5501a4fe8459381fe3c07f73b706a438effee06bd1b5e17ecb12b1347fdacb65556e339de58ca8ac32480dc1339cb43b1416c4aeb4f714f8c') + +build() { + cd $_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 $_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" +}