# Maintainer: Natanael Copa pkgname=rrdtool pkgver=1.2.30 pkgrel=4 pkgdesc="Data logging and graphing application" url="http://www.rrdtool.org" license="GPL" depends= makedepends="libart-lgpl-dev libpng-dev freetype-dev perl-dev" subpackages="$pkgname-dev $pkgname-doc perl-rrd:perl_rrd" source="http://oss.oetiker.ch/$pkgname/pub/$pkgname-$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" ./configure --prefix=/usr \ --disable-tcl \ --disable-python \ --disable-ruby \ --enable-rrdcgi make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" -name '.packlist' -delete find "$pkgdir" -name 'perllocal.pod' -delete } dev() { default_dev mkdir -p "$subpkgdir"/usr/share/$pkgname mv "$pkgdir"/usr/share/$pkgname/examples "$subpkgdir"/usr/share/$pkgname/ } perl_rrd() { pkgdesc="Perl interface for rrdtool" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/perl "$subpkgdir"/usr/lib/ } md5sums="19b24f7184a8dbf7b48c1bbb565ad9fb rrdtool-1.2.30.tar.gz"