updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / cblrepo / PKGBUILD
blob324aef77c4cc1f80e4a89092aba4b50831042baf
1 # custom variables
2 _hkgname=cblrepo
3 _licensefile=LICENSE-2.0
5 # PKGBUILD options/directives
6 pkgname=cblrepo
7 pkgver=0.3.1
8 pkgrel=4
9 pkgdesc="Tool to maintain a database of CABAL packages and their dependencies"
10 url="http://hackage.haskell.org/package/${_hkgname}"
11 license=("OtherLicense")
12 arch=('i686' 'x86_64')
13 makedepends=("ghc=7.0.3-2"
14              "haskell-unixutils=1.46-3"
15              "haskell-ansi-wl-pprint=0.6.3-18"
16              "haskell-cmdargs=0.7-18"
17              "haskell-json=0.4.4-18"
18              "haskell-mtl=2.0.1.0-3.1"
19              "haskell-tar=0.3.1.0-5"
20              "haskell-unix=2.4.2.0-2"
21              "haskell-zlib=0.5.3.1-2.1")
22 depends=()
23 options=('strip')
24 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
26 sha256sums=("4790906544d83a1e11d1344a196eeff77532d6246e5e5112446a330387003bf0")
28 # PKGBUILD functions
29 build() {
30     cd ${srcdir}/${_hkgname}-${pkgver}
31     
32     runhaskell Setup configure -O --prefix=/usr --docdir=/usr/share/doc/${pkgname}
33     runhaskell Setup build
36 package() {
37     cd ${srcdir}/${_hkgname}-${pkgver}
38     runhaskell Setup copy --destdir=${pkgdir}