updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / mbox-tools / PKGBUILD
blob75a9ee5060c5347d2abcadf6bafdf1bc4e1ade05
1 # custom variables
2 _hkgname=mbox-tools
3 _licensefile=LICENSE
5 # PKGBUILD options/directives
6 pkgname=mbox-tools
7 pkgver=0.2.0.4
8 pkgrel=4
9 pkgdesc="A collection of tools to process mbox files"
10 url="https://github.com/np/mbox-tools"
11 license=("BSD3")
12 arch=('i686' 'x86_64')
13 makedepends=("ghc=7.0.3-2"
14              "haskell-codec-mbox=0.1.0.0-2"
15              "haskell-fclabels=1.0.4-1"
16              "haskell-hsemail=1.7.1-18"
17              "haskell-mtl=2.0.1.0-3.1"
18              "haskell-parsec=3.1.1-2.1"
19              "haskell-puremd5=2.1.0.3-25")
20 depends=()
21 options=('strip')
22 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
24 sha256sums=("7053c190f5bf46365530df916f780ddb8bd6f497868fc69ec07dbda94fa20dc8")
26 # PKGBUILD functions
27 build() {
28     cd ${srcdir}/${_hkgname}-${pkgver}
29     
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}