summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dd84697fb4cd1a4090009f56079d926299559419 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: wenLiangcan <boxeed at gmail dot com>

_hkgname=jinkell
pkgname=jinkell-git
pkgver=20140720
pkgrel=1
pkgdesc="jing.fm CLI client"
url="https://github.com/rnons/jinkell"
license=('Unkown')
arch=('i686' 'x86_64')
makedepends=('ghc' 'haskell-http' 'haskell-configurator>=0.2' 'haskell-directory>=1.1.0.0' 'haskell-haskeline>=0.7' 'haskell-jinglib-git' 'haskell-lifted-base' 'haskell-mtl' 'haskell-process' 'haskell-text>=0.11.0.5' 'haskell-transformers' 'haskell-utf8-string>=0.3')
depends=('gmp' 'mplayer')
provides=("${_hkgname}")
options=('strip')
source=("${_hkgname}"::'git://github.com/rnons/jinkell.git')
md5sums=('SKIP')

pkgver() {
    cd "${srcdir}/${_hkgname}"
    git log -1 --format='%cd' --date=short | tr -d -- '-'
}

build() {
    cd "${srcdir}/${_hkgname}/${_hkgname}"
    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${_hkgname} -O
    runhaskell Setup build
}

package() {
    cd "${srcdir}/${_hkgname}/${_hkgname}"
    runhaskell Setup copy --destdir=${pkgdir}
}