summaryrefslogtreecommitdiff
path: root/community/happy
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/happy
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/happy')
-rw-r--r--community/happy/PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/community/happy/PKGBUILD b/community/happy/PKGBUILD
new file mode 100644
index 000000000..5f63b6e6a
--- /dev/null
+++ b/community/happy/PKGBUILD
@@ -0,0 +1,29 @@
+# $Id: PKGBUILD 89288 2013-04-28 16:52:09Z td123 $
+# Maintainer: Thomas Dziedzic <gostrc@gmail.com>
+# Contributor: simo <simo@archlinux.org>
+# Contributor: Vesa Kaihlavirta <vegai@iki.fi>
+
+pkgname=happy
+pkgver=1.18.10
+pkgrel=3
+pkgdesc="The Parser Generator for Haskell"
+url="http://hackage.haskell.org/package/happy"
+arch=('i686' 'x86_64')
+license=("custom:BSD3")
+depends=('gmp')
+makedepends=('ghc=7.6.3-1' 'haskell-mtl=2.1.2-3')
+source=("http://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+md5sums=('a1638e89434427e57f68ef311761dc30')
+
+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"
+}