[arch-commits] Commit in hledger/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Mon Aug 14 07:10:02 UTC 2017
Date: Monday, August 14, 2017 @ 07:10:02
Author: felixonmars
Revision: 250210
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
hledger/repos/community-staging-i686/
hledger/repos/community-staging-i686/PKGBUILD
(from rev 250209, hledger/trunk/PKGBUILD)
hledger/repos/community-staging-x86_64/
hledger/repos/community-staging-x86_64/PKGBUILD
(from rev 250209, hledger/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++
2 files changed, 104 insertions(+)
Copied: hledger/repos/community-staging-i686/PKGBUILD (from rev 250209, hledger/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-08-14 07:10:02 UTC (rev 250210)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=hledger
+pkgver=1.3
+pkgrel=12
+pkgdesc="Command-line interface for the hledger accounting tool"
+url="http://hledger.org"
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('ghc' "haskell-ansi-terminal" "haskell-base-compat" "haskell-file-embed" "haskell-here"
+ "haskell-pretty-show" "haskell-temporary" "haskell-tabular" "haskell-hledger-lib"
+ "haskell-unordered-containers" "haskell-cmdargs" "haskell-csv" "haskell-data-default"
+ "haskell-hashable" "haskell-hunit" "haskell-mtl" "haskell-old-time" "haskell-megaparsec"
+ "haskell-regex-tdfa" "haskell-safe" "haskell-split" "haskell-text" "haskell-utf8-string"
+ "haskell-wizards" "haskell-shakespeare")
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('61bb90028ba1d659d148033113f6b7b57fab625fd8b1940a22a78dec6c0aaac0166b48b1d72f1d593a29d02135794e0edb3288a05e7e1e7eb91774517e3174d2')
+
+prepare() {
+ # It does nothing
+ sed -e '/mtl-compat/d' \
+ -i ${pkgname}-${pkgver}/${pkgname}.cabal
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+ -f-oldtime -fterminfo -fthreaded
+ 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}/${pkgname}-${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/${pkgname}"
+ runhaskell Setup copy --destdir="${pkgdir}"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+
+ # Remove static libs
+ find "$pkgdir"/usr/lib -name "*.a" -delete
+}
Copied: hledger/repos/community-staging-x86_64/PKGBUILD (from rev 250209, hledger/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-08-14 07:10:02 UTC (rev 250210)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=hledger
+pkgver=1.3
+pkgrel=12
+pkgdesc="Command-line interface for the hledger accounting tool"
+url="http://hledger.org"
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('ghc' "haskell-ansi-terminal" "haskell-base-compat" "haskell-file-embed" "haskell-here"
+ "haskell-pretty-show" "haskell-temporary" "haskell-tabular" "haskell-hledger-lib"
+ "haskell-unordered-containers" "haskell-cmdargs" "haskell-csv" "haskell-data-default"
+ "haskell-hashable" "haskell-hunit" "haskell-mtl" "haskell-old-time" "haskell-megaparsec"
+ "haskell-regex-tdfa" "haskell-safe" "haskell-split" "haskell-text" "haskell-utf8-string"
+ "haskell-wizards" "haskell-shakespeare")
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('61bb90028ba1d659d148033113f6b7b57fab625fd8b1940a22a78dec6c0aaac0166b48b1d72f1d593a29d02135794e0edb3288a05e7e1e7eb91774517e3174d2')
+
+prepare() {
+ # It does nothing
+ sed -e '/mtl-compat/d' \
+ -i ${pkgname}-${pkgver}/${pkgname}.cabal
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+ -f-oldtime -fterminfo -fthreaded
+ 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}/${pkgname}-${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/${pkgname}"
+ runhaskell Setup copy --destdir="${pkgdir}"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+
+ # Remove static libs
+ find "$pkgdir"/usr/lib -name "*.a" -delete
+}
More information about the arch-commits
mailing list