updated on Tue Jan 10 00:10:07 UTC 2012
[aur-mirror.git] / jarred / PKGBUILD
blob3751fa007d24c4a987646be217d5741dc7b14ac7
1 # Maintainer: Paul Colomiets <paul@colomiets.name>
3 pkgname=jarred
4 pkgver=0.2
5 pkgrel=1
6 pkgdesc="A web frontend to collectd and rrd to json command-line extractor"
7 arch=('i686' 'x86_64')
8 url="http://github.com/tailhook/jarred"
9 license=('MIT')
10 depends=('zeromq' 'rrdtool')
11 optdepend=(
12     "zerogw: Running web frontend"
13     )
14 backup=()
15 source=(
16     "https://github.com/downloads/tailhook/jarred/$pkgname-$pkgver.tar.gz"
17     "jarred.install"
18     )
19 md5sums=('3fcd9645c19a142c9ab7e373b7d3a943' 'edb081accac11c7bb84981abe0063b83')
20 install=(jarred.install)
22 build() {
23   cd $srcdir/$pkgname-$pkgver
24   ./waf configure --prefix=/usr
25   ./waf build
28 package() {
29   cd $srcdir/$pkgname-$pkgver
30   ./waf install --destdir=$pkgdir
31   install -d -m 755 $pkgdir/etc/jarred
32   ln -s /usr/share/jarred/public/js/all.js $pkgdir/etc/jarred/all.js
33   install -D -m 755 jarred.rc $pkgdir/etc/rc.d/jarred
34   install -D -m 644 jarred-zerogw.yaml $pkgdir/etc/zerogw.d/jarred.yaml
35   mkdir -p $pkgdir/usr/share/jarred/public
36   cp -R public/* $pkgdir/usr/share/jarred/public
37   install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"