[arch-commits] Commit in haskell-test-framework/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Fri Aug 11 18:19:06 UTC 2017
Date: Friday, August 11, 2017 @ 18:19:05
Author: felixonmars
Revision: 249877
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
haskell-test-framework/repos/community-staging-i686/
haskell-test-framework/repos/community-staging-i686/PKGBUILD
(from rev 249876, haskell-test-framework/trunk/PKGBUILD)
haskell-test-framework/repos/community-staging-x86_64/
haskell-test-framework/repos/community-staging-x86_64/PKGBUILD
(from rev 249876, haskell-test-framework/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++
2 files changed, 100 insertions(+)
Copied: haskell-test-framework/repos/community-staging-i686/PKGBUILD (from rev 249876, haskell-test-framework/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-08-11 18:19:05 UTC (rev 249877)
@@ -0,0 +1,50 @@
+# $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=11
+pkgdesc="Framework for running and organising tests, with HUnit and QuickCheck support"
+url="https://batterseapower.github.io/test-framework/"
+license=("custom:BSD3")
+arch=('i686' 'x86_64')
+depends=('ghc' "haskell-ansi-terminal" "haskell-ansi-wl-pprint" "haskell-hostname"
+ "haskell-old-locale" "haskell-random" "haskell-regex-posix" "haskell-xml")
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha256sums=('7883626a5aebb1df327bf26dbd382208946250a79f9cc3bf9a9eb0b0767bb273')
+
+prepare() {
+ sed -i 's/time >= 1.1.2 && < 1.6,/time >= 1.1.2 \&\& < 1.7,/' ${_hkgname}-${pkgver}/${_hkgname}.cabal
+}
+
+build() {
+ cd "${srcdir}/${_hkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+ -f-tests
+ runhaskell Setup build
+ runhaskell Setup haddock --hoogle --html
+ 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"
+ install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
+ ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}"
+ runhaskell Setup copy --destdir="${pkgdir}"
+ install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+
+ # Remove static libs
+ find "$pkgdir"/usr/lib -name "*.a" -delete
+}
Copied: haskell-test-framework/repos/community-staging-x86_64/PKGBUILD (from rev 249876, haskell-test-framework/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-08-11 18:19:05 UTC (rev 249877)
@@ -0,0 +1,50 @@
+# $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=11
+pkgdesc="Framework for running and organising tests, with HUnit and QuickCheck support"
+url="https://batterseapower.github.io/test-framework/"
+license=("custom:BSD3")
+arch=('i686' 'x86_64')
+depends=('ghc' "haskell-ansi-terminal" "haskell-ansi-wl-pprint" "haskell-hostname"
+ "haskell-old-locale" "haskell-random" "haskell-regex-posix" "haskell-xml")
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha256sums=('7883626a5aebb1df327bf26dbd382208946250a79f9cc3bf9a9eb0b0767bb273')
+
+prepare() {
+ sed -i 's/time >= 1.1.2 && < 1.6,/time >= 1.1.2 \&\& < 1.7,/' ${_hkgname}-${pkgver}/${_hkgname}.cabal
+}
+
+build() {
+ cd "${srcdir}/${_hkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+ -f-tests
+ runhaskell Setup build
+ runhaskell Setup haddock --hoogle --html
+ 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"
+ install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
+ ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}"
+ runhaskell Setup copy --destdir="${pkgdir}"
+ install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+
+ # Remove static libs
+ find "$pkgdir"/usr/lib -name "*.a" -delete
+}
More information about the arch-commits
mailing list