X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=archlinuxppc.git;a=blobdiff_plain;f=happy%2FPKGBUILD;fp=happy%2FPKGBUILD;h=d537f8a82e0d4f73adf70bd8873f645eaa72d527;hp=0000000000000000000000000000000000000000;hb=0850412dee34fa3cb14736d1280894e20f4e57e9;hpb=42f5ba5fb79cff7221b0d21a942ef875c18102e0 diff --git a/happy/PKGBUILD b/happy/PKGBUILD new file mode 100644 index 0000000..d537f8a --- /dev/null +++ b/happy/PKGBUILD @@ -0,0 +1,27 @@ +# $Id: PKGBUILD 88454 2010-08-23 18:41:57Z vesa $ +# Maintainer: simo +# Contributor: Vesa Kaihlavirta + +pkgname=happy +pkgver=1.18.5 +pkgrel=1 +pkgdesc="The Parser Generator for Haskell" +url="http://www.haskell.org/happy/" +arch=('i686' 'x86_64' 'ppc') +license=("custom:BSD3") +depends=(gmp) +makedepends=(ghc haskell-mtl) +options=(strip) +source=(http://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz) + + +build() { + cd $startdir/src/${pkgname}-${pkgver} + + runhaskell Setup.lhs configure --prefix=/usr || return 1 + runhaskell Setup.lhs build || return 1 + runhaskell Setup.lhs copy --destdir=$startdir/pkg || return 1 + + install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE +} +md5sums=('9e77b67df7b6a4d7273383cc890f39e8')