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

Felix Yan felixonmars at archlinux.org
Mon Aug 31 05:24:26 UTC 2020


    Date: Monday, August 31, 2020 @ 05:24:26
  Author: felixonmars
Revision: 693637

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-tasty-silver/repos/community-staging-x86_64/PKGBUILD (from rev 693636, haskell-tasty-silver/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-08-31 05:24:26 UTC (rev 693637)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=tasty-silver
+pkgname=haskell-tasty-silver
+pkgver=3.1.15
+pkgrel=15
+pkgdesc="A fancy test runner, including support for golden tests"
+url="https://github.com/phile314/tasty-silver"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-ansi-terminal' 'haskell-async' 'haskell-optparse-applicative'
+         'haskell-process-extras' 'haskell-regex-tdfa' 'haskell-tagged' 'haskell-tasty'
+         'haskell-temporary')
+makedepends=('ghc' 'haskell-tasty-hunit')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('b097710f4a1ee690cb7fc449b8154ca13833338db14380f78a396b0a9376382aacfcb3a73106e1bb2c799643d0c26b353bf606d1cde0adaa26ac83236de3f364')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i '/semigroups/d' $_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