Date: Tuesday, August 14, 2018 @ 18:39:15 Author: anthraxx Revision: 371634
archrelease: copy trunk to community-x86_64 Added: haskell-parsec-numbers/repos/community-x86_64/ haskell-parsec-numbers/repos/community-x86_64/PKGBUILD (from rev 371633, haskell-parsec-numbers/trunk/PKGBUILD) ----------+ PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) Copied: haskell-parsec-numbers/repos/community-x86_64/PKGBUILD (from rev 371633, haskell-parsec-numbers/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2018-08-14 18:39:15 UTC (rev 371634) @@ -0,0 +1,37 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Contributor: Gabriel-Andrew Pollo-Guilbert <gabrielpolloguilb...@gmail.com> + +_hkgname=parsec-numbers +pkgname=haskell-${_hkgname} +pkgver=0.1.0 +pkgrel=2 +pkgdesc='Number parsers without the need to use a large (and unportable) token parser' +url='https://hackage.haskell.org/package/parsec-numbers' +arch=('x86_64') +license=('custom:BSD3') +depends=('ghc-libs' 'haskell-parsec') +makedepends=('ghc') +source=(https://hackage.haskell.org/package/${_hkgname}-${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('8a06ef239e6fb9fabaf04d947c21b298acd9538d2f98dd2404d943c18b5f29aa0d11572be3e1a846ae3d1345fbbdc5b2803df3ec196ccc212c4d76082c930b05') + +build() { + cd ${_hkgname}-${pkgver} + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid + 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 +} + +package() { + cd ${_hkgname}-${pkgver} + install -Dm 744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh" + install -Dm 744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh" + runhaskell Setup copy --destdir="${pkgdir}" + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" +} + +# vim: ts=2 sw=2 et: