Date: Tuesday, June 16, 2020 @ 02:38:10
  Author: felixonmars
Revision: 645760

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-conversion-text/repos/community-staging-x86_64/
  haskell-conversion-text/repos/community-staging-x86_64/PKGBUILD
    (from rev 645759, haskell-conversion-text/trunk/PKGBUILD)

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

Copied: haskell-conversion-text/repos/community-staging-x86_64/PKGBUILD (from 
rev 645759, haskell-conversion-text/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2020-06-16 02:38:10 UTC (rev 645760)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+_hkgname=conversion-text
+pkgname=haskell-conversion-text
+pkgver=1.0.1
+pkgrel=13
+pkgdesc="Conversion instances for the text library"
+url="https://github.com/nikita-volkov/conversion-text";
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-base-prelude' 'haskell-conversion' 
'haskell-conversion-bytestring')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('9595af8753f469824ade973064d1225d93409e3c59aac2b3e14ee15139e11c3f8abd4dff220254e4eb83c91fb98a9faf5041ad065096caf4f34e4e23a4a7e79e')
+
+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
+    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
+}
+
+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