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

Felix Yan felixonmars at archlinux.org
Wed Apr 1 10:59:51 UTC 2020


    Date: Wednesday, April 1, 2020 @ 10:59:49
  Author: felixonmars
Revision: 608746

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-tasty-hspec/repos/community-staging-x86_64/PKGBUILD (from rev 608745, haskell-tasty-hspec/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-04-01 10:59:49 UTC (rev 608746)
@@ -0,0 +1,48 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=tasty-hspec
+pkgname=haskell-tasty-hspec
+pkgver=1.1.5.1
+pkgrel=3
+pkgdesc="Hspec support for the Tasty test framework"
+url="https://github.com/mitchellwrosen/tasty-hspec"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-hspec' 'haskell-hspec-core' 'haskell-quickcheck' 'haskell-tasty'
+         'haskell-tasty-smallcheck' 'haskell-tasty-quickcheck')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('c03c2acdf57dc8aba762ba60a7448f92199ab55f8f311d4354e265c5c9ecb029c9242a65d0bc8e4d023bfaba89a674bf89f586e15f0e1c3f6fa66dc4ea682e6a')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i -e 's/< *2/<3/' -e 's/< *1/<2/' -e 's/>= 4.12/>= 4.13/' $_hkgname.cabal
+}
+
+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