summaryrefslogtreecommitdiff
path: root/community-staging/happy
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-06-12 00:01:37 +0000
committerroot <root@rshg054.dnsready.net>2012-06-12 00:01:37 +0000
commit14b46fb49966c5beb34127a600e7be2a04d0821b (patch)
tree65525e60fb02fa22c1f3acfd99f60d500606f1f8 /community-staging/happy
parent306ac55c1e99cfb5801ef0d9acf2a11d3994d80d (diff)
Tue Jun 12 00:01:37 UTC 2012
Diffstat (limited to 'community-staging/happy')
-rw-r--r--community-staging/happy/PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/community-staging/happy/PKGBUILD b/community-staging/happy/PKGBUILD
new file mode 100644
index 000000000..4d239ff86
--- /dev/null
+++ b/community-staging/happy/PKGBUILD
@@ -0,0 +1,29 @@
+# $Id: PKGBUILD 72226 2012-06-11 03:28:44Z 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=5
+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.2-1' 'haskell-mtl=2.1.1-1')
+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"
+}