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

Felix Yan felixonmars at archlinux.org
Sun May 23 08:14:05 UTC 2021


    Date: Sunday, May 23, 2021 @ 08:14:05
  Author: felixonmars
Revision: 942946

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-tasty-lua/repos/community-staging-x86_64/PKGBUILD (from rev 942945, haskell-tasty-lua/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-05-23 08:14:05 UTC (rev 942946)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=tasty-lua
+pkgname=haskell-tasty-lua
+pkgver=0.2.3.2
+pkgrel=55
+pkgdesc="Write tests in Lua, integrate into tasty."
+url="https://github.com/hslua/tasty-lua"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-file-embed' 'haskell-hslua' 'haskell-tasty')
+makedepends=('ghc' 'haskell-tasty-hunit')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('14c13448f0755001f10175205f6e2eb7a70d2f428c05c2c734e95b8a136cd2b1b1363fd55297038f0db224b993e0db9d3c1203ed9d8c825dca5aeadfdce3a45e')
+
+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 --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