Date: Friday, August 6, 2021 @ 08:57:47 Author: felixonmars Revision: 994125
archrelease: copy trunk to community-staging-x86_64 Added: hledger/repos/community-staging-x86_64/ hledger/repos/community-staging-x86_64/PKGBUILD (from rev 994124, hledger/trunk/PKGBUILD) ----------+ PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) Copied: hledger/repos/community-staging-x86_64/PKGBUILD (from rev 994124, hledger/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-08-06 08:57:47 UTC (rev 994125) @@ -0,0 +1,49 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +pkgname=hledger +pkgver=1.22.1 +pkgrel=2 +pkgdesc="Command-line interface for the hledger accounting system" +url="http://hledger.org" +license=("GPL") +arch=('x86_64') +depends=('ghc-libs' 'haskell-aeson' 'haskell-ansi-terminal' 'haskell-base-compat-batteries' + 'haskell-cmdargs' 'haskell-data-default' 'haskell-decimal' 'haskell-diff' 'haskell-githash' + 'haskell-hashable' 'haskell-hledger-lib' 'haskell-lucid' 'haskell-math-functions' + 'haskell-megaparsec' 'haskell-old-time' 'haskell-regex-tdfa' + 'haskell-safe' 'haskell-shakespeare' 'haskell-split' 'haskell-tabular' 'haskell-tasty' + 'haskell-temporary' 'haskell-unordered-containers' 'haskell-utf8-string' + 'haskell-utility-ht' 'haskell-wizards') +makedepends=('ghc' 'haskell-extra' 'haskell-timeit') +source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha512sums=('812186460cf8bf6ad6a0eb9f3f84cbc9cd1383ea0f1d1937abde04d959f792485e5c6ff11f8fbeed47c43f622f307c9d6836ec02827942f357548ea88375e928') + +build() { + cd $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 --ghc-option='-pie' + LC_CTYPE=en_US.UTF-8 runhaskell Setup build $MAKEFLAGS + 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 --show-details=direct +} + +package() { + cd $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 + + install -Dm644 hledger.1 -t "$pkgdir"/usr/share/man/man1/ + install -Dm644 shell-completion/hledger-completion.bash "$pkgdir"/usr/share/bash-completion/completions/hledger +}