Date: Wednesday, June 24, 2020 @ 07:58:02 Author: felixonmars Revision: 652002
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 652001, haskell-quickcheck-instances/trunk/PKGBUILD) ----------+ PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) Copied: haskell-quickcheck-instances/repos/community-staging-x86_64/PKGBUILD (from rev 652001, haskell-quickcheck-instances/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-06-24 07:58:02 UTC (rev 652002) @@ -0,0 +1,47 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=quickcheck-instances +pkgname=haskell-quickcheck-instances +pkgver=0.3.23 +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-these' '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=('b5344f32ed3c05cefcc6aea3850b9ab249025b3a473f65e6442f33ab1d6290547f068096406d842031ff6c3dfbeec68b28eacf17d2613a0888c9141bccf5514b') + +prepare() { + cd $_hkgname-$pkgver + sed -i 's/< *0.1/<0.2/' $_hkgname.cabal +} + +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 $MAKEFLAGS + 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 +}