1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Thomas Dziedzic <gostrc@gmail.com>
3 # Contributor: simo <simo@archlinux.org>
4 # Contributor: Vesa Kaihlavirta <vegai@iki.fi>
9 pkgdesc="The Parser Generator for Haskell"
10 url="https://hackage.haskell.org/package/happy"
12 license=("custom:BSD2")
15 source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
16 sha512sums=('a2ff6a1778884de22f4900a22b8a451ed5dc8a8e66020ce9e186a03068257748a3810c63b56f1efa0b646d99fe637f87178983f387d4c49bc33b82613877ec48')
19 cd "${srcdir}/${pkgname}-${pkgver}"
21 runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
22 --ghc-option='-dynload=deploy' --prefix=/usr --datasubdir=$pkgname
23 runhaskell Setup build $MAKEFLAGS
27 cd "${srcdir}/${pkgname}-${pkgver}"
28 runhaskell Setup copy --destdir="${pkgdir}"
29 rm -r "$pkgdir/usr/share/doc"
30 install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"