[arch-commits] Commit in haskell-conduit-extra/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed May 29 05:59:44 UTC 2019
Date: Wednesday, May 29, 2019 @ 05:59:43
Author: felixonmars
Revision: 473636
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-conduit-extra/repos/community-staging-x86_64/
haskell-conduit-extra/repos/community-staging-x86_64/PKGBUILD
(from rev 473635, haskell-conduit-extra/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: haskell-conduit-extra/repos/community-staging-x86_64/PKGBUILD (from rev 473635, haskell-conduit-extra/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-05-29 05:59:43 UTC (rev 473636)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=conduit-extra
+pkgname=haskell-conduit-extra
+pkgver=1.3.1.1
+pkgrel=19
+pkgdesc="Batteries included conduit: adapters for common libraries."
+url="https://github.com/snoyberg/conduit"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-async' 'haskell-attoparsec' 'haskell-conduit' 'haskell-network'
+ 'haskell-primitive' 'haskell-resourcet' 'haskell-streaming-commons' 'haskell-typed-process'
+ 'haskell-unliftio-core')
+makedepends=('ghc' 'haskell-exceptions' 'haskell-hspec' 'haskell-quickcheck'
+ 'haskell-transformers-base')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('0ae117903afc58c8207a767328a479400654215b4c8106ada9c0107a9234a65e4fe7f1689294572bb8fdeb63f1d5c9e11c14964c0dfda67d80ffc1e1a5ca3a82')
+
+prepare() {
+ sed -i '/bytestring-builder/d' $_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
+ runhaskell Setup build
+ 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"
+}
More information about the arch-commits
mailing list