Date: Wednesday, February 26, 2020 @ 20:33:32 Author: felixonmars Revision: 583155
archrelease: copy trunk to community-staging-x86_64 Added: happy/repos/community-staging-x86_64/ happy/repos/community-staging-x86_64/PKGBUILD (from rev 583154, happy/trunk/PKGBUILD) ----------+ PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) Copied: happy/repos/community-staging-x86_64/PKGBUILD (from rev 583154, happy/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-02-26 20:33:32 UTC (rev 583155) @@ -0,0 +1,31 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Thomas Dziedzic <gos...@gmail.com> +# Contributor: simo <s...@archlinux.org> +# Contributor: Vesa Kaihlavirta <ve...@iki.fi> + +pkgname=happy +pkgver=1.19.12 +pkgrel=4 +pkgdesc="The Parser Generator for Haskell" +url="https://hackage.haskell.org/package/happy" +arch=('x86_64') +license=("custom:BSD2") +depends=('ghc-libs') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha512sums=('20f36b17adf7330852fd4c05335adbf31e6f19907b4ec247c85a40ee1f8496c6dc432055026696906b149cec7f982b88c9a2eeedf14a11d34b1f6f73272e5208') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --ghc-option='-dynload=deploy' --prefix=/usr --datasubdir="$pkgname" + runhaskell Setup build +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + runhaskell Setup copy --destdir="${pkgdir}" + rm -r "$pkgdir/usr/share/doc" + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +}