summaryrefslogtreecommitdiff
path: root/staging/happy/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-02-25 23:15:06 +0000
committerroot <root@rshg054.dnsready.net>2012-02-25 23:15:06 +0000
commite4a5730eb358cb0d78bc022204ddccac068c2bf2 (patch)
tree8dc9d2ac6b1313cb68be1a6c8b51500397f8b225 /staging/happy/PKGBUILD
parent299e917c17619f800f0c21cf43209065b608223f (diff)
Sat Feb 25 23:15:06 UTC 2012
Diffstat (limited to 'staging/happy/PKGBUILD')
-rw-r--r--staging/happy/PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/staging/happy/PKGBUILD b/staging/happy/PKGBUILD
new file mode 100644
index 000000000..c84247e5a
--- /dev/null
+++ b/staging/happy/PKGBUILD
@@ -0,0 +1,29 @@
+# $Id: PKGBUILD 151112 2012-02-24 23:20:45Z tdziedzic $
+# Maintainer: Thomas Dziedzic <gostrc@gmail.com>
+# Contributor: simo <simo@archlinux.org>
+# Contributor: Vesa Kaihlavirta <vegai@iki.fi>
+
+pkgname=happy
+pkgver=1.18.9
+pkgrel=4
+pkgdesc="The Parser Generator for Haskell"
+url="http://www.haskell.org/happy/"
+arch=('i686' 'x86_64')
+license=("custom:BSD3")
+depends=('gmp')
+makedepends=('ghc=7.4.1' 'haskell-mtl=2.0.1.0-4')
+source=(http://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz)
+md5sums=('aeb565fe572f979f15a24db0df2de37d')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ runhaskell Setup.lhs configure -O --prefix=/usr
+ runhaskell Setup.lhs build
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ runhaskell Setup.lhs copy --destdir="${pkgdir}"
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}