ayaports/apk/v3.15/main/happy/APKBUILD
2021-11-30 21:44:44 +00:00

33 lines
1.1 KiB
Text

# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Thomas Dziedzic <gostrc@gmail.com>
# Contributor: simo <simo@archlinux.org>
# Contributor: Vesa Kaihlavirta <vegai@iki.fi>
pkgname=happy
pkgver=1.20.0
pkgrel=0
pkgdesc="The Parser Generator for Haskell"
url="https://hackage.haskell.org/package/happy"
arch='x86_64'
options=!check
makedepends="ghc ghc-dev libffi-dev"
license="custom:BSD2"
source="https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
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"
}
sha512sums="
2c19e6e13032ead435495aab232192cf0ad9fe5e3e04c79b40b586272fb0208284815cf5c15d609f75387e7fe91ca0932b675bcaa95552f62ad08a12701649ce happy-1.20.0.tar.gz
"