Date: Tuesday, June 20, 2017 @ 16:21:30 Author: felixonmars Revision: 239070
addpkg: haskell-hledger-lib 1.2-1 Added: haskell-hledger-lib/ haskell-hledger-lib/repos/ haskell-hledger-lib/trunk/ haskell-hledger-lib/trunk/PKGBUILD ----------+ PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) Added: haskell-hledger-lib/trunk/PKGBUILD =================================================================== --- haskell-hledger-lib/trunk/PKGBUILD (rev 0) +++ haskell-hledger-lib/trunk/PKGBUILD 2017-06-20 16:21:30 UTC (rev 239070) @@ -0,0 +1,55 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=hledger-lib +pkgname=haskell-hledger-lib +pkgver=1.2 +pkgrel=1 +pkgdesc="Core data types, parsers and functionality for the hledger accounting tools" +url="http://hledger.org" +license=("GPL") +arch=('i686' 'x86_64') +depends=('ghc' 'haskell-base-compat' 'haskell-blaze-markup' 'haskell-cmdargs' 'haskell-csv' + 'haskell-data-default' 'haskell-decimal' 'haskell-hashtables' 'haskell-megaparsec' + 'haskell-mtl' 'haskell-old-time' 'haskell-pretty-show' 'haskell-regex-tdfa' 'haskell-safe' + 'haskell-split' 'haskell-text' 'haskell-uglymemo' 'haskell-utf8-string' 'haskell-hunit' + 'haskell-parsec' 'haskell-semigroups') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('49d61407b014198d3d81eda53831419b2529f19b3dabcc7b7319d9157db1ca9c4d295f2487d7744c126759a97437c3345ee8e5163fc4001832645f0c1318d011') + +prepare() { + # It does nothing + sed -e '/mtl-compat/d' \ + -e 's/megaparsec >=5.0 && < 5.3/megaparsec >=5.0 \&\& < 5.4/' \ + -i ${_hkgname}-${pkgver}/${_hkgname}.cabal +} + +build() { + cd "${srcdir}/${_hkgname}-${pkgver}" + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ + -f-oldtime + runhaskell Setup build + runhaskell Setup haddock --hoogle --html + 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 +} + +package() { + cd "${srcdir}/${_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" + install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries" + ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}" + runhaskell Setup copy --destdir="${pkgdir}" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" + + # Remove static libs + find "$pkgdir"/usr/lib -name "*.a" -delete +} Property changes on: haskell-hledger-lib/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property