# Maintainer: UtG # Contributors: Adrián Chaves Frenández (Gallaecio) ## NOTE: when you update Haskell packages you'll have to update the entire stack to not break it ## pkgname=happy pkgver=1.19.3 pkgrel=1 pkgdesc="The Parser Generator for Haskell" url="http://hackage.haskell.org/package/happy" arch=('x86_64') license=("custom:BSD3") depends=('gmp') makedepends=('ghc=7.6.3-1' 'haskell-mtl') options=(strip) source=(http://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz) md5sums=('fb9f4aec9d9e3b92be95a8abc43704b4') package() { cd ${srcdir}/${pkgname}-${pkgver} runhaskell Setup.lhs configure --prefix=/usr runhaskell Setup.lhs build runhaskell Setup.lhs copy --destdir=$pkgdir install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE }