updated on Thu Jan 19 04:14:35 UTC 2012
[aur-mirror.git] / nptools / PKGBUILD
blob7311f80c5b169758ccdb88dbe8d503c197b1d193
1 # custom variables
2 _hkgname=nptools
3 _licensefile=LICENSE
5 # PKGBUILD options/directives
6 pkgname=nptools
7 pkgver=0.5.0
8 pkgrel=6
9 pkgdesc="A collection of random tools"
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-hsh=2.0.3-20"
15              "haskell-missingh=1.1.1.0-2"
16              "haskell-sha=1.5.0.0-2"
17              "haskell-ansi-terminal=0.5.5-18"
18              "haskell-colour=2.3.1-18"
19              "haskell-split=0.1.4.1-1"
20              "haskell-unix=2.4.2.0-2")
21 depends=()
22 options=('strip')
23 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
25 sha256sums=("8a8d9775dcaef5acdc728277214a7e0080c3d2b680d7e0405d5f1eb1675d93dd")
27 # PKGBUILD functions
28 build() {
29     cd ${srcdir}/${_hkgname}-${pkgver}
30     
31     runhaskell Setup configure -O --prefix=/usr --docdir=/usr/share/doc/${pkgname}
32     runhaskell Setup build
35 package() {
36     cd ${srcdir}/${_hkgname}-${pkgver}
37     runhaskell Setup copy --destdir=${pkgdir}