Date: Sunday, June 6, 2021 @ 22:19:57 Author: felixonmars Revision: 956406
archrelease: copy trunk to community-staging-x86_64 Added: happy/repos/community-staging-x86_64/ happy/repos/community-staging-x86_64/PKGBUILD (from rev 956405, happy/trunk/PKGBUILD) ----------+ PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) Copied: happy/repos/community-staging-x86_64/PKGBUILD (from rev 956405, happy/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-06-06 22:19:57 UTC (rev 956406) @@ -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.20.0 +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=('2c19e6e13032ead435495aab232192cf0ad9fe5e3e04c79b40b586272fb0208284815cf5c15d609f75387e7fe91ca0932b675bcaa95552f62ad08a12701649ce') + +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 $MAKEFLAGS +} + +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" +}