Date: Thursday, May 17, 2018 @ 10:52:49
  Author: felixonmars
Revision: 323665

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 323664, haskell-easytest/trunk/PKGBUILD)

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Copied: haskell-easytest/repos/community-staging-x86_64/PKGBUILD (from rev 
323664, haskell-easytest/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-17 10:52:49 UTC (rev 323665)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+_hkgname=easytest
+pkgname=haskell-easytest
+pkgver=0.2
+pkgrel=2
+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')
+
+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"
+}

Reply via email to