Date: Saturday, June 2, 2018 @ 18:37:50 Author: felixonmars Revision: 338043
archrelease: copy trunk to community-staging-x86_64 Added: hledger-web/repos/community-staging-x86_64/ hledger-web/repos/community-staging-x86_64/PKGBUILD (from rev 338042, hledger-web/trunk/PKGBUILD) ----------+ PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) Copied: hledger-web/repos/community-staging-x86_64/PKGBUILD (from rev 338042, hledger-web/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-06-02 18:37:50 UTC (rev 338043) @@ -0,0 +1,47 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +pkgname=hledger-web +pkgver=1.9.2 +pkgrel=19 +pkgdesc="Web interface for the hledger accounting tool" +url="http://hledger.org" +license=("GPL") +arch=('x86_64') +depends=('ghc-libs' 'hledger' 'haskell-hledger-lib' 'haskell-base-compat' 'haskell-blaze-html' + 'haskell-blaze-markup' 'haskell-clientsession' 'haskell-cmdargs' 'haskell-data-default' + 'haskell-hjsmin' 'haskell-http-conduit' 'haskell-http-client' 'haskell-hunit' + 'haskell-conduit-extra' 'haskell-safe' 'haskell-shakespeare' 'haskell-wai' + 'haskell-wai-extra' 'haskell-wai-handler-launch' 'haskell-warp' 'haskell-yesod' + 'haskell-yesod-core' 'haskell-yesod-form' 'haskell-yesod-static' 'haskell-json' + 'haskell-megaparsec') +makedepends=('ghc' 'haskell-hspec' 'haskell-yesod-test') +source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha512sums=('7a2ca40f96bc00a5419f1becb02ff86f2b58f7f34a03b85859034bcb7bf301458c5b6b5159e95bea65223fbdc0f65dbb0b09a9275adc4bfcbfc586f3a30ab837') + +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 \ + -f-dev -f-library-only -fthreaded + 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" +}