Date: Wednesday, July 21, 2021 @ 13:07:43
  Author: felixonmars
Revision: 981946

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-th-utilities/repos/community-staging-x86_64/
  haskell-th-utilities/repos/community-staging-x86_64/PKGBUILD
    (from rev 981945, haskell-th-utilities/trunk/PKGBUILD)

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

Copied: haskell-th-utilities/repos/community-staging-x86_64/PKGBUILD (from rev 
981945, haskell-th-utilities/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-07-21 13:07:43 UTC (rev 981946)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+_hkgname=th-utilities
+pkgname=haskell-th-utilities
+pkgver=0.2.4.3
+pkgrel=17
+pkgdesc="Collection of useful functions for use with Template Haskell"
+url="https://github.com/fpco/th-utilities";
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-primitive' 'haskell-syb' 'haskell-th-abstraction' 
'haskell-th-orphans')
+makedepends=('ghc' 'haskell-hspec' 'haskell-vector')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('6fa1d09ca40f548b0f9c97ed623924964a8c03dfc7a4874ee1db7d854b25008299e4eb6f5cea0befaa636cdb4ebdd1ce7685a2c4ea03548c24395f48e9f88e3a')
+
+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
+}

Reply via email to