[arch-commits] Commit in haskell-tasty-quickcheck/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed May 16 16:19:22 UTC 2018
Date: Wednesday, May 16, 2018 @ 16:19:22
Author: felixonmars
Revision: 322920
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-tasty-quickcheck/repos/community-staging-x86_64/
haskell-tasty-quickcheck/repos/community-staging-x86_64/PKGBUILD
(from rev 322919, haskell-tasty-quickcheck/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: haskell-tasty-quickcheck/repos/community-staging-x86_64/PKGBUILD (from rev 322919, haskell-tasty-quickcheck/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-05-16 16:19:22 UTC (rev 322920)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=tasty-quickcheck
+pkgname=haskell-tasty-quickcheck
+pkgver=0.10
+pkgrel=3
+pkgdesc="QuickCheck support for the Tasty test framework."
+url="http://documentup.com/feuerbach/tasty"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-optparse-applicative' 'haskell-quickcheck' 'haskell-random'
+ 'haskell-tagged' 'haskell-tasty')
+makedepends=('ghc' 'haskell-tasty-hunit' 'haskell-pcre-light')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('dd6c4b41fa6a98c61f2f650c7e2a6b45ed5778f894bb92c531cccfca914752d0065d767719c1c466af1f2a565b8cebfc5968e835282b13e372b753e690ad1728')
+
+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