updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / cabal-sort / PKGBUILD
blob7daa75384a639971de7e1db3f0d11fbf079a7809
1 # custom variables
2 _hkgname=cabal-sort
3 _licensefile=LICENSE
5 # PKGBUILD options/directives
6 pkgname=cabal-sort
7 pkgver=0.0.2.1
8 pkgrel=18
9 pkgdesc="Topologically sort cabal packages"
10 url="http://hackage.haskell.org/package/${_hkgname}"
11 license=("BSD3")
12 arch=('i686' 'x86_64')
13 makedepends=("ghc=7.0.3-2"
14              "haskell-cabal=1.10.1.0"
15              "haskell-bytestring=0.9.1.10"
16              "haskell-containers=0.4.0.0"
17              "haskell-directory=1.1.0.0"
18              "haskell-explicit-exception=0.1.6"
19              "haskell-fgl=5.4.2.3"
20              "haskell-filepath=1.2.0.0"
21              "haskell-process=1.0.1.5"
22              "haskell-transformers=0.2.2.0")
23 depends=()
24 options=('strip')
25 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
27 sha256sums=("c91f363bda014315e708eb0325da41ebbd138c6ad02a3ef509849823432d27f4")
29 # PKGBUILD functions
30 build() {
31     cd ${srcdir}/${_hkgname}-${pkgver}
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}