[arch-commits] Commit in haskell-tasty-hedgehog/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Mar 7 09:31:58 UTC 2018
Date: Wednesday, March 7, 2018 @ 09:31:57
Author: felixonmars
Revision: 303559
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-tasty-hedgehog/repos/community-staging-x86_64/
haskell-tasty-hedgehog/repos/community-staging-x86_64/PKGBUILD
(from rev 303558, haskell-tasty-hedgehog/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: haskell-tasty-hedgehog/repos/community-staging-x86_64/PKGBUILD (from rev 303558, haskell-tasty-hedgehog/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-03-07 09:31:57 UTC (rev 303559)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=tasty-hedgehog
+pkgname=haskell-tasty-hedgehog
+pkgver=0.1.0.2
+pkgrel=11
+pkgdesc="Integrates the hedgehog testing library with the tasty testing framework"
+url="https://github.com/qfpl/tasty-hedgehog"
+license=('custom:BSD3')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-hedgehog' 'haskell-tagged' 'haskell-tasty')
+makedepends=('ghc' 'haskell-tasty-expected-failure')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('a6c335fe2f2c57c85425007472ad8ef90e3351ca408ed46e2780b4368ac992f6d38bf1c75706e3e4a6e87b06a40bb17618449b3e70f28ec40b34854673c36355')
+
+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 "LICENCE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENCE"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENCE"
+}
More information about the arch-commits
mailing list