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

Felix Yan felixonmars at gemini.archlinux.org
Sat Jan 15 14:17:14 UTC 2022


    Date: Saturday, January 15, 2022 @ 14:17:14
  Author: felixonmars
Revision: 1104181

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-tasty-golden/repos/community-staging-x86_64/PKGBUILD (from rev 1104180, haskell-tasty-golden/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-01-15 14:17:14 UTC (rev 1104181)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=tasty-golden
+pkgname=haskell-tasty-golden
+pkgver=2.3.5
+pkgrel=1
+pkgdesc="Golden tests support for tasty"
+url="https://github.com/feuerbach/tasty-golden"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-tasty" "haskell-optparse-applicative" "haskell-temporary"
+         "haskell-tagged" "haskell-async" 'haskell-typed-process')
+makedepends=('ghc' 'haskell-tasty-hunit')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('e98935654b0df84a5bbfe36d772c0895b4bb50a6fcc30d305261c3845f7c8a5ab0c0d2297157809cb61fd230d567dadcd763b953d79d9fadeb8e6edb9af5980f')
+
+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 --ghc-option=-fllvm
+    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 --show-details=direct
+}
+
+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