summaryrefslogtreecommitdiff
path: root/extra/happy/PKGBUILD
blob: ac93ba2bf151fa601d1dee52abc992197f3991d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# $Id: PKGBUILD 127724 2011-06-17 20:54:42Z eric $
# Maintainer: simo <simo@archlinux.org>
# Contributor: Vesa Kaihlavirta <vegai@iki.fi>
 
pkgname=happy
pkgver=1.18.6
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=7.0.2 haskell-mtl=2.0.1.0)
options=(strip)
source=(http://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz)
md5sums=('7d4d1425f5068633cd477a2b2216880d')

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"
}