[arch-commits] Commit in haskell-chell-quickcheck/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Jun 1 17:35:05 UTC 2018
Date: Friday, June 1, 2018 @ 17:35:05
Author: felixonmars
Revision: 336345
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-chell-quickcheck/repos/community-staging-x86_64/
haskell-chell-quickcheck/repos/community-staging-x86_64/PKGBUILD
(from rev 336344, haskell-chell-quickcheck/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: haskell-chell-quickcheck/repos/community-staging-x86_64/PKGBUILD (from rev 336344, haskell-chell-quickcheck/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-06-01 17:35:05 UTC (rev 336345)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=chell-quickcheck
+pkgname=haskell-chell-quickcheck
+pkgver=0.2.5.1
+pkgrel=6
+pkgdesc="QuickCheck support for the Chell testing library"
+url="https://john-millikin.com/software/chell/"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-chell' 'haskell-quickcheck' 'haskell-random')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('4879c084731112e0e17e6d82510850c119c7e5e5cde90c03ecce9ea470f94429ddd040b9346a5aa268b0ea41c5656025cc2dacfe533d370efd7162473a1ebc6e')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ sed -i 's/<.*2.11/<3/' $_hkgname.cabal
+}
+
+build() {
+ cd "${srcdir}/${_hkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+ --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
+}
+
+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.txt" "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/license.txt"
+}
More information about the arch-commits
mailing list