[arch-commits] Commit in haskell-tasty/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Dec 7 12:55:09 UTC 2017
Date: Thursday, December 7, 2017 @ 12:55:07
Author: felixonmars
Revision: 273034
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-tasty/repos/community-staging-x86_64/
haskell-tasty/repos/community-staging-x86_64/PKGBUILD
(from rev 273033, haskell-tasty/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: haskell-tasty/repos/community-staging-x86_64/PKGBUILD (from rev 273033, haskell-tasty/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-12-07 12:55:07 UTC (rev 273034)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=tasty
+pkgname=haskell-tasty
+pkgver=0.12
+pkgrel=2
+pkgdesc="Modern and extensible testing framework"
+url="http://documentup.com/feuerbach/tasty"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-ansi-terminal' 'haskell-async' 'haskell-clock' 'haskell-mtl'
+ 'haskell-optparse-applicative' 'haskell-regex-tdfa' 'haskell-stm' 'haskell-tagged'
+ 'haskell-unbounded-delays')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('e55a80384117aa0f83ee71e283557c0820641f52c215008d08f84741c7638ce1718d7121f09abf8036084ae79af69cd4aa25de073ba283c6358d08c28a21ffb9')
+
+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" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+}
More information about the arch-commits
mailing list