[arch-commits] Commit in haskell-resourcet/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Dec 6 12:07:24 UTC 2017
Date: Wednesday, December 6, 2017 @ 12:07:22
Author: felixonmars
Revision: 272478
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-resourcet/repos/community-staging-x86_64/
haskell-resourcet/repos/community-staging-x86_64/PKGBUILD
(from rev 272477, haskell-resourcet/trunk/PKGBUILD)
----------+
PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
Copied: haskell-resourcet/repos/community-staging-x86_64/PKGBUILD (from rev 272477, haskell-resourcet/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-12-06 12:07:22 UTC (rev 272478)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=resourcet
+pkgname=haskell-resourcet
+pkgver=1.1.10
+pkgrel=1
+pkgdesc="Deterministic allocation and freeing of scarce resources."
+url="https://github.com/snoyberg/conduit"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-exceptions' 'haskell-lifted-base' 'haskell-mmorph'
+ 'haskell-monad-control' 'haskell-mtl' 'haskell-transformers-base'
+ 'haskell-transformers-compat' 'haskell-unliftio-core')
+makedepends=('ghc' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('41d0f3733856b756d4e82ff7682c2d4a0feae4fa6904e5097c69bc0e19e815b64c57d7bb459ef16c13c5e834be666b55f96e5d15cec49073aa1a0e2651f04705')
+
+build() {
+ cd "${srcdir}/${_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 "${srcdir}/${_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