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

Felix Yan felixonmars at archlinux.org
Fri Jul 31 23:44:42 UTC 2020


    Date: Friday, July 31, 2020 @ 23:44:41
  Author: felixonmars
Revision: 666775

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 666774, haskell-tasty-hspec/trunk/PKGBUILD)

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

Copied: haskell-tasty-hspec/repos/community-staging-x86_64/PKGBUILD (from rev 666774, haskell-tasty-hspec/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-31 23:44:41 UTC (rev 666775)
@@ -0,0 +1,48 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=tasty-hspec
+pkgname=haskell-tasty-hspec
+pkgver=1.1.5.1
+pkgrel=13
+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.14/' $_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 $MAKEFLAGS
+    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