[arch-commits] Commit in haskell-tasty/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Jul 28 14:24:53 UTC 2018
Date: Saturday, July 28, 2018 @ 14:24:53
Author: felixonmars
Revision: 363776
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 363775, haskell-tasty/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: haskell-tasty/repos/community-staging-x86_64/PKGBUILD (from rev 363775, haskell-tasty/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-07-28 14:24:53 UTC (rev 363776)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=tasty
+pkgname=haskell-tasty
+pkgver=1.1.0.3
+pkgrel=1
+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-optparse-applicative' 'haskell-tagged' 'haskell-unbounded-delays'
+ 'haskell-wcwidth')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('18f8cbdfd968bdb3e4a8daa0d38a2f69288cc880ab433825deabd0d094f725d5a43e6495d17dae72693717b46f25ed330e9686d22c3d79abd96e3d494eaf41b2')
+
+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 \
+ -fclock
+ 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