[arch-commits] Commit in haskell-test-framework/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Dec 30 10:50:05 UTC 2017
Date: Saturday, December 30, 2017 @ 10:50:04
Author: felixonmars
Revision: 277022
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-test-framework/repos/community-staging-x86_64/
haskell-test-framework/repos/community-staging-x86_64/PKGBUILD
(from rev 277021, haskell-test-framework/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: haskell-test-framework/repos/community-staging-x86_64/PKGBUILD (from rev 277021, haskell-test-framework/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-12-30 10:50:04 UTC (rev 277022)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=test-framework
+pkgname=haskell-test-framework
+pkgver=0.8.1.1
+pkgrel=16
+pkgdesc="Framework for running and organising tests, with HUnit and QuickCheck support"
+url="https://batterseapower.github.io/test-framework/"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-ansi-terminal" "haskell-ansi-wl-pprint" "haskell-hostname"
+ "haskell-old-locale" "haskell-random" "haskell-regex-posix" "haskell-xml")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('7fd6015a0469623d2738c2a8d14c6b3a356c9463084a1b471f1c1b7b75bd33796ae8a0c01731e7b87dfa345be16bbeb262fcb1cdd4d8f1fdabd79c45f3570cbd')
+
+prepare() {
+ sed -i 's/time >= 1.1.2 && < 1.6,/time >= 1.1.2,/' ${_hkgname}-${pkgver}/${_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 \
+ -f-tests
+ 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" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+}
More information about the arch-commits
mailing list