updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / cabal2arch / PKGBUILD
blob5dfd2477484cfa7efb975ee77288cf9074df8d54
1 # custom variables
2 _hkgname=cabal2arch
3 _licensefile=LICENSE
5 # PKGBUILD options/directives
6 pkgname=cabal2arch
7 pkgver=1.1
8 pkgrel=19
9 pkgdesc="Create Arch Linux packages from Cabal packages."
10 url="http://github.com/archhaskell/"
11 license=("BSD3")
12 arch=('i686' 'x86_64')
13 makedepends=("ghc=7.0.3-2"
14              "haskell-cabal=1.10.1.0"
15              "haskell-archlinux=1.3"
16              "haskell-bytestring=0.9.1.10"
17              "haskell-cmdargs=0.7"
18              "haskell-containers=0.4.0.0"
19              "haskell-directory=1.1.0.0"
20              "haskell-filepath=1.2.0.0"
21              "haskell-mtl=2.0.1.0"
22              "haskell-pretty=1.0.1.2"
23              "haskell-process=1.0.1.5")
24 depends=()
25 options=('strip')
26 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
28 sha256sums=("1fb18ba9ed506788f1b6c2f977ee6aead0b7edb9cd2bdae2cd210949d307616a")
30 # PKGBUILD functions
31 build() {
32     cd ${srcdir}/${_hkgname}-${pkgver}
33     runhaskell Setup configure -O --prefix=/usr --docdir=/usr/share/doc/${pkgname}
34     runhaskell Setup build
37 package() {
38     cd ${srcdir}/${_hkgname}-${pkgver}
39     runhaskell Setup copy --destdir=${pkgdir}