Date: Tuesday, February 2, 2021 @ 21:43:45 Author: felixonmars Revision: 841663
archrelease: copy trunk to community-staging-x86_64 Added: haskell-bytestring-tree-builder/repos/community-staging-x86_64/ haskell-bytestring-tree-builder/repos/community-staging-x86_64/PKGBUILD (from rev 841662, haskell-bytestring-tree-builder/trunk/PKGBUILD) ----------+ PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) Copied: haskell-bytestring-tree-builder/repos/community-staging-x86_64/PKGBUILD (from rev 841662, haskell-bytestring-tree-builder/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-02-02 21:43:45 UTC (rev 841663) @@ -0,0 +1,44 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=bytestring-tree-builder +pkgname=haskell-bytestring-tree-builder +pkgver=0.2.7.5 +pkgrel=43 +pkgdesc="A very efficient ByteString builder implementation based on the binary tree" +url="https://github.com/nikita-volkov/bytestring-tree-builder" +license=("MIT") +arch=('x86_64') +depends=('ghc-libs' 'haskell-base-prelude') +makedepends=('ghc' 'haskell-tasty' 'haskell-tasty-quickcheck' 'haskell-tasty-hunit' + 'haskell-quickcheck-instances' 'haskell-quickcheck') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('9311e9cd1cbadf91fcbcea2beebc680d2d22633350a36649e6932e7b95258213934bfcd223e838c4b24bf5daeab88a886b88e19e0dbede4a9be3c0d0565d7275') + +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 + 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 +} + +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 +}