[arch-commits] Commit in hledger/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu May 10 09:08:07 UTC 2018
Date: Thursday, May 10, 2018 @ 09:08:06
Author: felixonmars
Revision: 320085
archrelease: copy trunk to community-staging-x86_64
Added:
hledger/repos/community-staging-x86_64/
hledger/repos/community-staging-x86_64/PKGBUILD
(from rev 320084, hledger/trunk/PKGBUILD)
----------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
Copied: hledger/repos/community-staging-x86_64/PKGBUILD (from rev 320084, hledger/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-05-10 09:08:06 UTC (rev 320085)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=hledger
+pkgver=1.9
+pkgrel=8
+pkgdesc="Command-line interface for the hledger accounting tool"
+url="http://hledger.org"
+license=("GPL")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-ansi-terminal' 'haskell-base-compat' 'haskell-cmdargs' 'haskell-csv'
+ 'haskell-data-default' 'haskell-decimal' 'haskell-diff' 'haskell-file-embed'
+ 'haskell-hashable' 'haskell-here' 'haskell-hledger-lib' 'haskell-hunit' 'haskell-lucid'
+ 'haskell-megaparsec' 'haskell-mtl' 'haskell-old-time' 'haskell-pretty-show'
+ 'haskell-regex-tdfa' 'haskell-safe' 'haskell-shakespeare' 'haskell-split' 'haskell-tabular'
+ 'haskell-temporary' 'haskell-text' 'haskell-unordered-containers' 'haskell-utf8-string'
+ 'haskell-utility-ht' 'haskell-wizards')
+makedepends=('ghc' 'haskell-test-framework' 'haskell-test-framework-hunit')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('8b09f1368e1caf554f027b27ea99ac791a7abed4bb76cd28a1c29959c6bce4bc265d9ead5f0d6fe2d227885d2d438faf5d7de0fc6ea80721d9ee63aa64401e95')
+
+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 --disable-library-vanilla \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" --enable-tests \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+ -fterminfo -fthreaded
+ LC_CTYPE=en_US.UTF-8 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
+}
+
+check() {
+ cd $pkgname-$pkgver
+ runhaskell Setup test
+}
+
+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"
+ runhaskell Setup copy --destdir="${pkgdir}"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+}
More information about the arch-commits
mailing list