Date: Monday, January 11, 2021 @ 19:51:11
  Author: felixonmars
Revision: 818329

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 818328, haskell-tasty-silver/trunk/PKGBUILD)

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

Copied: haskell-tasty-silver/repos/community-staging-x86_64/PKGBUILD (from rev 
818328, haskell-tasty-silver/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-01-11 19:51:11 UTC (rev 818329)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+_hkgname=tasty-silver
+pkgname=haskell-tasty-silver
+pkgver=3.1.15
+pkgrel=54
+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
+}

Reply via email to