Date: Thursday, June 10, 2021 @ 16:48:55 Author: felixonmars Revision: 961490
archrelease: copy trunk to community-staging-x86_64 Added: haskell-aeson/repos/community-staging-x86_64/ haskell-aeson/repos/community-staging-x86_64/PKGBUILD (from rev 961488, haskell-aeson/trunk/PKGBUILD) ----------+ PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) Copied: haskell-aeson/repos/community-staging-x86_64/PKGBUILD (from rev 961488, haskell-aeson/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-06-10 16:48:55 UTC (rev 961490) @@ -0,0 +1,54 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Daniel Nagy <danielnagy at gmx de> +# Contributor: Daniel Micay <danielmi...@gmail.com> + +pkgname=haskell-aeson +_hkgname=aeson +pkgver=1.5.6.0 +pkgrel=32 +pkgdesc="A JSON parsing and encoding library optimized for ease of use and high performance." +url="https://github.com/haskell/aeson" +license=("GPL") +arch=('x86_64') +depends=('ghc-libs' 'haskell-attoparsec' 'haskell-base-compat-batteries' 'haskell-data-fix' + 'haskell-dlist' 'haskell-hashable' 'haskell-primitive' 'haskell-scientific' + 'haskell-strict' 'haskell-tagged' 'haskell-th-abstraction' 'haskell-these' + 'haskell-time-compat' 'haskell-unordered-containers' 'haskell-uuid-types' 'haskell-vector') +makedepends=('ghc' 'uusi' 'haskell-quickcheck' 'haskell-integer-logarithms' + 'haskell-base-orphans' 'haskell-base16-bytestring' 'haskell-diff' + 'haskell-generic-deriving' 'haskell-hashable-time' 'haskell-tasty' + 'haskell-tasty-golden' 'haskell-tasty-hunit' 'haskell-tasty-quickcheck' + 'haskell-quickcheck-instances') +source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-${pkgver}.tar.gz") +sha512sums=('31e0339945aec6d84aec230c09001fe6e7926f008d3444d12264bb323d0a050515303fdc8eeb6563733594209d930cdd2f82eb4dfe4dd4d5c573748aaa71813d') + +prepare() { + uusi -u attoparsec -u hashable-time $_hkgname-$pkgver/$_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 --enable-tests \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ + -f-developer -f-fast -f-cffi + 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 +} + +check() { + cd $_hkgname-$pkgver + runhaskell Setup test --show-details=direct +} + +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" + rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE +}