[arch-commits] Commit in haskell-hledger-lib/repos (4 files)

Felix Yan felixonmars at archlinux.org
Thu Sep 28 15:12:05 UTC 2017


    Date: Thursday, September 28, 2017 @ 15:12:05
  Author: felixonmars
Revision: 260811

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 260810, haskell-hledger-lib/trunk/PKGBUILD)
  haskell-hledger-lib/repos/community-staging-x86_64/
  haskell-hledger-lib/repos/community-staging-x86_64/PKGBUILD
    (from rev 260810, haskell-hledger-lib/trunk/PKGBUILD)

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

Copied: haskell-hledger-lib/repos/community-staging-i686/PKGBUILD (from rev 260810, haskell-hledger-lib/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-09-28 15:12:05 UTC (rev 260811)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=hledger-lib
+pkgname=haskell-hledger-lib
+pkgver=1.3.2
+pkgrel=5
+pkgdesc="Core data types, parsers and functionality for the hledger accounting tools"
+url="http://hledger.org"
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('ghc-libs' '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')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('f03a39f183263a9e2a4f46c148ed8fe8357c5731b6bde385655b0f7f252e4a1422c2ac547d9f8ffd0f046fd12f6195004d8dea3de248c565561bd02a07f005e7')
+
+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 --disable-library-vanilla \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+            -f-oldtime
+    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}"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+}

Copied: haskell-hledger-lib/repos/community-staging-x86_64/PKGBUILD (from rev 260810, haskell-hledger-lib/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-09-28 15:12:05 UTC (rev 260811)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=hledger-lib
+pkgname=haskell-hledger-lib
+pkgver=1.3.2
+pkgrel=5
+pkgdesc="Core data types, parsers and functionality for the hledger accounting tools"
+url="http://hledger.org"
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('ghc-libs' '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')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('f03a39f183263a9e2a4f46c148ed8fe8357c5731b6bde385655b0f7f252e4a1422c2ac547d9f8ffd0f046fd12f6195004d8dea3de248c565561bd02a07f005e7')
+
+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 --disable-library-vanilla \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+            -f-oldtime
+    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}"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list