[arch-commits] Commit in haskell-easytest/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Oct 14 20:44:33 UTC 2018
Date: Sunday, October 14, 2018 @ 20:44:32
Author: felixonmars
Revision: 393805
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-easytest/repos/community-staging-x86_64/
haskell-easytest/repos/community-staging-x86_64/PKGBUILD
(from rev 393804, haskell-easytest/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: haskell-easytest/repos/community-staging-x86_64/PKGBUILD (from rev 393804, haskell-easytest/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-10-14 20:44:32 UTC (rev 393805)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=easytest
+pkgname=haskell-easytest
+pkgver=0.2
+pkgrel=5
+pkgdesc="Simple, expressive testing library"
+url="https://github.com/joelburget/easytest"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-async' 'haskell-call-stack'
+ 'haskell-random')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('6509950950eda804b3a8eac8130857c19877944e4e8b653bc20189c65c9070cebfb55bd3b68ac0a22aa25fd6e040f36c10d37c70778a0f1e1b2b4c68188eda97')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ sed -i 's/< *0.6/<1/' $_hkgname.cabal
+ sed -i '1i{-# language NoMonadFailDesugaring #-}' src/EasyTest/Generators.hs
+}
+
+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 \
+ -foptimized -f-quiet
+ 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 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+}
More information about the arch-commits
mailing list