Date: Monday, August 7, 2017 @ 07:52:01
  Author: felixonmars
Revision: 249319

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  haskell-hledger-lib/repos/community-staging-i686/
  haskell-hledger-lib/repos/community-staging-i686/PKGBUILD
    (from rev 249318, haskell-hledger-lib/trunk/PKGBUILD)
  haskell-hledger-lib/repos/community-staging-x86_64/
  haskell-hledger-lib/repos/community-staging-x86_64/PKGBUILD
    (from rev 249318, haskell-hledger-lib/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   55 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   55 ++++++++++++++++++++++++++++++++++++
 2 files changed, 110 insertions(+)

Copied: haskell-hledger-lib/repos/community-staging-i686/PKGBUILD (from rev 
249318, haskell-hledger-lib/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD                             (rev 0)
+++ community-staging-i686/PKGBUILD     2017-08-07 07:52:01 UTC (rev 249319)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+_hkgname=hledger-lib
+pkgname=haskell-hledger-lib
+pkgver=1.3
+pkgrel=6
+pkgdesc="Core data types, parsers and functionality for the hledger accounting 
tools"
+url="http://hledger.org";
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('ghc' 'haskell-ansi-terminal' 'haskell-base-compat' 
'haskell-blaze-markup'
+         'haskell-cmdargs' 'haskell-csv' 'haskell-data-default' 
'haskell-decimal'
+         'haskell-hashtables' 'haskell-megaparsec' 'haskell-mtl' 
'haskell-old-time'
+         'haskell-pretty-show' 'haskell-regex-tdfa' 'haskell-safe' 
'haskell-split' 'haskell-text'
+         'haskell-uglymemo' 'haskell-utf8-string' 'haskell-hunit' 
'haskell-parsec'
+         'haskell-semigroups')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
+sha512sums=('ec011e8ec66471fe8ceaab42e77c6de3b316f9e888fc2690a9cdcff49eccf6c09254379551019a9c30424fd139d54f53244729554475441645009932ea96d17f')
+
+prepare() {
+    # It does nothing
+    sed -e '/mtl-compat/d' \
+        -i ${_hkgname}-${pkgver}/${_hkgname}.cabal
+}
+
+build() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+            -f-oldtime
+    runhaskell Setup build
+    runhaskell Setup haddock --hoogle --html
+    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"
+    install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
+    ln -s "/usr/share/doc/${pkgname}/html" 
"${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}"
+    runhaskell Setup copy --destdir="${pkgdir}"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+
+    # Remove static libs
+    find "$pkgdir"/usr/lib -name "*.a" -delete
+}

Copied: haskell-hledger-lib/repos/community-staging-x86_64/PKGBUILD (from rev 
249318, haskell-hledger-lib/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2017-08-07 07:52:01 UTC (rev 249319)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+_hkgname=hledger-lib
+pkgname=haskell-hledger-lib
+pkgver=1.3
+pkgrel=6
+pkgdesc="Core data types, parsers and functionality for the hledger accounting 
tools"
+url="http://hledger.org";
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('ghc' 'haskell-ansi-terminal' 'haskell-base-compat' 
'haskell-blaze-markup'
+         'haskell-cmdargs' 'haskell-csv' 'haskell-data-default' 
'haskell-decimal'
+         'haskell-hashtables' 'haskell-megaparsec' 'haskell-mtl' 
'haskell-old-time'
+         'haskell-pretty-show' 'haskell-regex-tdfa' 'haskell-safe' 
'haskell-split' 'haskell-text'
+         'haskell-uglymemo' 'haskell-utf8-string' 'haskell-hunit' 
'haskell-parsec'
+         'haskell-semigroups')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
+sha512sums=('ec011e8ec66471fe8ceaab42e77c6de3b316f9e888fc2690a9cdcff49eccf6c09254379551019a9c30424fd139d54f53244729554475441645009932ea96d17f')
+
+prepare() {
+    # It does nothing
+    sed -e '/mtl-compat/d' \
+        -i ${_hkgname}-${pkgver}/${_hkgname}.cabal
+}
+
+build() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+            -f-oldtime
+    runhaskell Setup build
+    runhaskell Setup haddock --hoogle --html
+    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"
+    install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
+    ln -s "/usr/share/doc/${pkgname}/html" 
"${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}"
+    runhaskell Setup copy --destdir="${pkgdir}"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+
+    # Remove static libs
+    find "$pkgdir"/usr/lib -name "*.a" -delete
+}

Reply via email to