updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / bnfc / PKGBUILD
blobe9f2dbde013ead239fdaf4039f883c13322f971b
1 # custom variables
2 _hkgname=BNFC
3 _licensefile=COPYING
5 # PKGBUILD options/directives
6 pkgname=bnfc
7 pkgver=2.4.2.0
8 pkgrel=18
9 pkgdesc="A compiler front-end generator."
10 url="http://www.cse.chalmers.se/research/group/Language-technology/BNFC/"
11 license=("GPL")
12 arch=('i686' 'x86_64')
13 makedepends=("ghc=7.0.3-2"
14              "haskell-array=0.3.0.2"
15              "haskell-directory=1.1.0.0"
16              "haskell-haskell98=1.1.0.1"
17              "haskell-mtl=2.0.1.0"
18              "haskell-process=1.0.1.5")
19 depends=()
20 options=('strip')
21 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
23 sha256sums=("c0c69b50f17e13cf5afd9c9d8ce2cabab1273c14bebc91f4f065068af5a7ca5a")
25 # PKGBUILD functions
26 build() {
27     cd ${srcdir}/${_hkgname}-${pkgver}
28     runhaskell Setup configure -O --prefix=/usr --docdir=/usr/share/doc/${pkgname}
29     runhaskell Setup build
32 package() {
33     cd ${srcdir}/${_hkgname}-${pkgver}
34     runhaskell Setup copy --destdir=${pkgdir}