Date: Wednesday, October 7, 2020 @ 11:19:49 Author: felixonmars Revision: 720366
archrelease: copy trunk to community-staging-x86_64 Added: haskell-conduit/repos/community-staging-x86_64/ haskell-conduit/repos/community-staging-x86_64/PKGBUILD (from rev 720365, haskell-conduit/trunk/PKGBUILD) ----------+ PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) Copied: haskell-conduit/repos/community-staging-x86_64/PKGBUILD (from rev 720365, haskell-conduit/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-10-07 11:19:49 UTC (rev 720366) @@ -0,0 +1,45 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=conduit +pkgname=haskell-conduit +pkgver=1.3.2.1 +pkgrel=11 +pkgdesc="Streaming data processing library." +url="https://github.com/snoyberg/conduit" +license=("MIT") +arch=('x86_64') +depends=('ghc-libs' 'haskell-mono-traversable' 'haskell-primitive' + 'haskell-resourcet' 'haskell-unliftio-core' 'haskell-vector') +makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck' 'haskell-safe' 'haskell-silently' + 'haskell-split' 'haskell-unliftio') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('40cdfe1fcb295adbafd3db212dbd93f1e2ecb179dd2b1af55f0936c205c83e7cd453b5de6a78d2e0be82565cc32ef494c5870ede6057f2bed7000a83e192e850') + +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 +}