Date: Tuesday, July 3, 2018 @ 18:24:22 Author: felixonmars Revision: 351503
archrelease: copy trunk to community-staging-x86_64 Added: hledger-ui/repos/community-staging-x86_64/ hledger-ui/repos/community-staging-x86_64/PKGBUILD (from rev 351502, hledger-ui/trunk/PKGBUILD) ----------+ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) Copied: hledger-ui/repos/community-staging-x86_64/PKGBUILD (from rev 351502, hledger-ui/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-07-03 18:24:22 UTC (rev 351503) @@ -0,0 +1,39 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +pkgname=hledger-ui +pkgver=1.9.1 +pkgrel=31 +pkgdesc="Curses-style user interface for the hledger accounting tool" +url="http://hledger.org" +license=("GPL") +arch=('x86_64') +depends=('ghc-libs' 'hledger' 'haskell-hledger-lib' 'haskell-ansi-terminal' 'haskell-async' + 'haskell-base-compat' 'haskell-cmdargs' 'haskell-data-default' 'haskell-fsnotify' + 'haskell-hunit' 'haskell-microlens' 'haskell-microlens-platform' 'haskell-megaparsec' + 'haskell-pretty-show' 'haskell-safe' 'haskell-split' 'haskell-text-zipper' + 'haskell-vector' 'haskell-brick' 'haskell-vty') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha512sums=('09d6a6d7db923adcf659d778061e49fd9cb204c99326d7a8c5201412190633b99f45928805a2fcf25ab1439b9ee4f4534d0057c0a1f3f3f83422f0a7f0266173') + +prepare() { + # It does nothing + sed -e '/mtl-compat/d' \ + -i ${pkgname}-${pkgver}/${pkgname}.cabal +} + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + runhaskell Setup configure -O --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \ + -fthreaded + runhaskell Setup build +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + runhaskell Setup copy --destdir="${pkgdir}" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" +}