Date: Wednesday, February 24, 2021 @ 12:27:44 Author: felixonmars Revision: 871329
archrelease: copy trunk to community-staging-x86_64 Added: haskell-hledger-lib/repos/community-staging-x86_64/ haskell-hledger-lib/repos/community-staging-x86_64/PKGBUILD (from rev 871328, haskell-hledger-lib/trunk/PKGBUILD) ----------+ PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) Copied: haskell-hledger-lib/repos/community-staging-x86_64/PKGBUILD (from rev 871328, haskell-hledger-lib/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-02-24 12:27:44 UTC (rev 871329) @@ -0,0 +1,51 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=hledger-lib +pkgname=haskell-hledger-lib +pkgver=1.20.4 +pkgrel=14 +pkgdesc="A reusable library providing the core functionality of hledger" +url="http://hledger.org" +license=("GPL") +arch=('x86_64') +depends=('ghc-libs' 'haskell-aeson' 'haskell-aeson-pretty' 'haskell-ansi-terminal' + 'haskell-base-compat-batteries' 'haskell-blaze-markup' 'haskell-call-stack' + 'haskell-cassava' 'haskell-cassava-megaparsec' 'haskell-cmdargs' 'haskell-data-default' + 'haskell-decimal' 'haskell-extra' 'haskell-file-embed' 'haskell-glob' + 'haskell-hashtables' 'haskell-megaparsec' 'haskell-old-time' 'haskell-parser-combinators' + 'haskell-pretty-simple' 'haskell-regex-tdfa' 'haskell-safe' 'haskell-split' + 'haskell-tabular' 'haskell-tasty' 'haskell-tasty-hunit' 'haskell-timeit' + 'haskell-uglymemo' 'haskell-unordered-containers' 'haskell-utf8-string') +makedepends=('ghc' 'haskell-doctest') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('9fce23868e4d59e613e17b6e819f45f67f5bc14392db0345d3cfffd560031b5f0572fe6e18ae72e5af153b80de08a24395b4f68a9a560092e7c2ac04399c9522') + +build() { + cd $_hkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid + 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 $_hkgname-$pkgver + runhaskell Setup test +} + +package() { + cd $_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 + + install -Dm644 hledger_*.5 -t "$pkgdir"/usr/share/man/man5/ +}