updated on Sun Jan 15 20:01:04 UTC 2012
[aur-mirror.git] / c2hs / PKGBUILD
bloba3da3bf7d86b9d4b1f0c1acfe3774c298f7412d0
1 # custom variables
2 _hkgname=c2hs
3 _licensefile=COPYING
5 # PKGBUILD options/directives
6 pkgname=c2hs
7 pkgver=0.16.3
8 pkgrel=20
9 pkgdesc="C->Haskell FFI tool that gives some cross-language type safety"
10 url="http://www.cse.unsw.edu.au/~chak/haskell/c2hs/"
11 license=("GPL-2")
12 arch=('i686' 'x86_64')
13 makedepends=("ghc=7.0.3-2"
14              "haskell-array=0.3.0.2"
15              "haskell-containers=0.4.0.0"
16              "haskell-directory=1.1.0.0"
17              "haskell-filepath=1.2.0.0"
18              "haskell-language-c=0.3.2.1"
19              "haskell-pretty=1.0.1.2"
20              "haskell-process=1.0.1.5")
21 depends=()
22 options=('strip')
23 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
25 sha256sums=("a562be4f9c2d2a2c55bc61233f86e129aff1ec6ac588b9eb904e17379beb1ae3")
27 # PKGBUILD functions
28 build() {
29     cd ${srcdir}/${_hkgname}-${pkgver}
30     runhaskell Setup configure -O --prefix=/usr --docdir=/usr/share/doc/${pkgname}
31     runhaskell Setup build
34 package() {
35     cd ${srcdir}/${_hkgname}-${pkgver}
36     runhaskell Setup copy --destdir=${pkgdir}