# $Id: PKGBUILD 37875 2009-05-04 06:41:22Z vesa $ # Maintainer: simo # Contributor: Vesa Kaihlavirta pkgname=happy pkgver=1.18.4 pkgrel=1 pkgdesc="The Parser Generator for Haskell" url="http://www.haskell.org/happy/" arch=('i686' 'x86_64') license=("custom:BSD3") depends=(gmp) makedepends=(ghc) options=(strip) source=(http://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz) md5sums=('614e3ef9623dbeefc4c8ca699912efb4') build() { cd $startdir/src/${pkgname}-${pkgver} ./Setup.lhs configure --prefix=/usr || return 1 ./Setup.lhs build || return 1 ./Setup.lhs copy --destdir=$startdir/pkg || return 1 install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE }