Date: Friday, May 18, 2018 @ 06:44:20
  Author: felixonmars
Revision: 324228

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-dataenc/repos/community-staging-x86_64/PKGBUILD (from rev 
324227, haskell-dataenc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-18 06:44:20 UTC (rev 324228)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Vesa Kaihlavirta <v...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+# Package generated by cabal2arch 0.7.5
+
+_hkgname=dataenc
+pkgname=haskell-dataenc
+pkgver=0.14.0.7
+pkgrel=13
+pkgdesc="Data encoding library"
+url="https://hackage.haskell.org/package/dataenc";
+license=('custom:BSD3')
+arch=('x86_64')
+depends=('ghc-libs' 'sh')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('82f34ad51b64b66726e45c0c2ef52c9c2be201f42c5718763158a13eb2e8f82cb0298c1580dd52788e8d7b3f1eb0e7ade4e6e69f7ba4b2f8804eb2178e719e20')
+
+prepare(){
+    sed -i 's/base >= 3.0.0 && < 4.8/base >= 3.0.0/' 
${_hkgname}-${pkgver}/${_hkgname}.cabal
+}
+
+build() {
+    cd "${srcdir}/${_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 "${srcdir}/${_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