[arch-commits] Commit in haskell-hspec-contrib/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 10 14:03:45 UTC 2018


    Date: Tuesday, July 10, 2018 @ 14:03:45
  Author: felixonmars
Revision: 356085

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-hspec-contrib/repos/community-staging-x86_64/
  haskell-hspec-contrib/repos/community-staging-x86_64/PKGBUILD
    (from rev 356084, haskell-hspec-contrib/trunk/PKGBUILD)

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

Copied: haskell-hspec-contrib/repos/community-staging-x86_64/PKGBUILD (from rev 356084, haskell-hspec-contrib/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-07-10 14:03:45 UTC (rev 356085)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=hspec-contrib
+pkgname=haskell-hspec-contrib
+pkgver=0.5.0
+pkgrel=16
+pkgdesc="Contributed functionality for Hspec"
+url="http://hspec.github.io/"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-hspec-core' 'haskell-hunit')
+makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('30cc69eaf6a4e6a2f8af6ab10c2ab185e2ffec5de03a4724a118377ea1abdcddf75db3ba7733325f2486763c1dea6bc87501aee2798defe2646af332994a6486')
+
+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
+    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