Date: Sunday, August 8, 2021 @ 21:22:10 Author: felixonmars Revision: 995894
archrelease: copy trunk to community-staging-x86_64 Added: haskell-chimera/repos/community-staging-x86_64/ haskell-chimera/repos/community-staging-x86_64/PKGBUILD (from rev 995893, haskell-chimera/trunk/PKGBUILD) ----------+ PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) Copied: haskell-chimera/repos/community-staging-x86_64/PKGBUILD (from rev 995893, haskell-chimera/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-08-08 21:22:10 UTC (rev 995894) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=chimera +pkgname=haskell-chimera +pkgver=0.3.1.0 +pkgrel=9 +pkgdesc="Lazy infinite streams with O(1) indexing" +url="https://github.com/Bodigrim/chimera#readme" +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-adjunctions' 'haskell-distributive' 'haskell-vector') +makedepends=('ghc' 'haskell-quickcheck' 'haskell-tasty' 'haskell-tasty-hunit' + 'haskell-tasty-quickcheck' 'haskell-tasty-smallcheck') +source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz") +sha256sums=('2945f0a12b1a56b73249fd67e23b1e4e9e34cb1495f250af32536405454fb325') + +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 \ + --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \ + --ghc-option='-pie' + + 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" + install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ + rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE +} \ No newline at end of file