Date: Tuesday, June 9, 2020 @ 21:10:20 Author: felixonmars Revision: 640963
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 640962, haskell-hledger-lib/trunk/PKGBUILD) ----------+ PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) Copied: haskell-hledger-lib/repos/community-staging-x86_64/PKGBUILD (from rev 640962, haskell-hledger-lib/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-06-09 21:10:20 UTC (rev 640963) @@ -0,0 +1,48 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=hledger-lib +pkgname=haskell-hledger-lib +pkgver=1.17.1 +pkgrel=24 +pkgdesc="Core data types, parsers and functionality for the hledger accounting tools" +url="http://hledger.org" +license=("GPL") +arch=('x86_64') +depends=('ghc-libs' 'haskell-aeson' '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-fgl' + 'haskell-file-embed' 'haskell-glob' 'haskell-hashtables' 'haskell-megaparsec' + 'haskell-old-time' 'haskell-parser-combinators' 'haskell-pretty-show' 'haskell-regex-tdfa' + 'haskell-safe' 'haskell-split' 'haskell-tabular' 'haskell-tasty' 'haskell-tasty-hunit' + 'haskell-timeit' 'haskell-uglymemo' 'haskell-utf8-string') +makedepends=('ghc' 'haskell-doctest') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('04563c51783155d42968881021a2e027491d380282425c7e7f34d58a24fb5e719e3f5e5e295d8a6e9f9011f9532d6905a2eaf87701edc4257a3f019b4682cdd0') + +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 +}