Date: Wednesday, January 29, 2020 @ 23:28:44
  Author: felixonmars
Revision: 559305

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-wl-pprint-text/repos/community-staging-x86_64/
  haskell-wl-pprint-text/repos/community-staging-x86_64/PKGBUILD
    (from rev 559304, haskell-wl-pprint-text/trunk/PKGBUILD)

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

Copied: haskell-wl-pprint-text/repos/community-staging-x86_64/PKGBUILD (from 
rev 559304, haskell-wl-pprint-text/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2020-01-29 23:28:44 UTC (rev 559305)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+_hkgname=wl-pprint-text
+pkgname=haskell-wl-pprint-text
+pkgver=1.2.0.0
+pkgrel=12
+pkgdesc="A Wadler/Leijen Pretty Printer for Text values"
+url="https://hackage.haskell.org/package/${_hkgname}";
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-base-compat')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
+sha512sums=('d81e059deeba5bb23e82a6aa3a88ddcfb2b3b40c9c9591b1e5784040b9fa01626276f5c4761b3acd33d06c75066d38868de70586fc3ae830e20260ea00e425ae')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i 's/== *0.10/== 0.11/' $_hkgname.cabal
+}
+
+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
+    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