[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 27 16:03:02 UTC 2017


    Date: Monday, November 27, 2017 @ 16:02:59
  Author: felixonmars
Revision: 270348

addpkg: haskell-hedgehog 0.5-1

Added:
  haskell-hedgehog/
  haskell-hedgehog/repos/
  haskell-hedgehog/trunk/
  haskell-hedgehog/trunk/PKGBUILD

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

Added: haskell-hedgehog/trunk/PKGBUILD
===================================================================
--- haskell-hedgehog/trunk/PKGBUILD	                        (rev 0)
+++ haskell-hedgehog/trunk/PKGBUILD	2017-11-27 16:02:59 UTC (rev 270348)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=hedgehog
+pkgname=haskell-hedgehog
+pkgver=0.5
+pkgrel=1
+pkgdesc="A modern property-based testing system"
+url="https://hedgehog.qa"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-ansi-terminal' 'haskell-async' 'haskell-concurrent-output'
+         'haskell-exceptions' 'haskell-lifted-async' 'haskell-mmorph' 'haskell-monad-control'
+         'haskell-mtl' 'haskell-pretty-show' 'haskell-primitive' 'haskell-random'
+         'haskell-resourcet' 'haskell-stm' 'haskell-text' 'haskell-th-lift'
+         'haskell-transformers-base' 'haskell-wl-pprint-annotated')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('e3bc53bed9cde3b3ff9bfd7bb3ccbdfb881f90c2469776e41c952deca0c5832eb93d3304a27954046784a46aa9ef62b87ed8db36300682f304c3044d73f65b09')
+
+build() {
+    cd "${srcdir}/${_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
+    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 "${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"
+}


Property changes on: haskell-hedgehog/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property


More information about the arch-commits mailing list