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

Felix Yan felixonmars at archlinux.org
Tue May 28 17:21:30 UTC 2019


    Date: Tuesday, May 28, 2019 @ 17:21:29
  Author: felixonmars
Revision: 472794

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-tasty/repos/community-staging-x86_64/PKGBUILD (from rev 472793, haskell-tasty/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-05-28 17:21:29 UTC (rev 472794)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=tasty
+pkgname=haskell-tasty
+pkgver=1.2
+pkgrel=10
+pkgdesc="Modern and extensible testing framework"
+url="http://documentup.com/feuerbach/tasty"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-ansi-terminal' 'haskell-async' 'haskell-clock'
+         'haskell-optparse-applicative' 'haskell-tagged' 'haskell-unbounded-delays'
+         'haskell-wcwidth')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('7f5a97b646d08bc6c7a2470fa57c83df73b6bb2a68ffb55695f82ddcde0a9920323af6c54fda0d2253e990cdca4cad4d28a7e27aaba532f2aecfea6411d02156')
+
+build() {
+    cd $_hkgname-$pkgver
+
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+            -fclock
+    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
+}
+
+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