core/rrdtool/PKGBUILD

37 lines
1.3 KiB
Bash
Raw Normal View History

2010-05-17 15:50:50 +08:00
# $Id: PKGBUILD 79791 2010-05-07 14:12:03Z dan $
2010-03-14 23:48:48 +08:00
# Maintainer: Eric Belanger <eric@archlinux.org>
# Contributor: Tom K <tom@archlinux.org>
pkgname=rrdtool
pkgver=1.4.4
pkgrel=1
2010-03-14 23:48:48 +08:00
pkgdesc="Data logging and graphing application"
arch=('i686' 'x86_64')
url="http://www.rrdtool.org"
license=('GPL')
2010-05-17 15:50:50 +08:00
depends=('libpng' 'libxml2' 'pango')
makedepends=('intltool' 'ruby' 'python2' 'tcl' 'lua')
2010-03-14 23:48:48 +08:00
optdepends=('tcl: to use corresponding binding' \
'python2: to use corresponding binding' \
2010-03-14 23:48:48 +08:00
'ruby: to use corresponding binding' \
'lua: to use corresponding binding')
options=('!libtool' '!emptydirs' '!makeflags')
source=(http://oss.oetiker.ch/rrdtool/pub/rrdtool-${pkgver}.tar.gz)
md5sums=('93ad2fc2e9ddcd7d99c611fe30284a54')
2010-03-14 23:48:48 +08:00
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
2010-05-17 15:50:50 +08:00
./configure --prefix=/usr --localstatedir=/var --disable-rpath --enable-perl \
2010-03-14 23:48:48 +08:00
--enable-perl-site-install --with-perl-options='INSTALLDIRS=vendor' \
--enable-ruby --enable-ruby-site-install --enable-python \
--enable-lua --enable-lua-site-install \
2010-05-17 15:50:50 +08:00
--enable-tcl || return 1
2010-03-14 23:48:48 +08:00
make || return 1
2010-05-17 15:50:50 +08:00
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
2010-03-14 23:48:48 +08:00
make DESTDIR="${pkgdir}" LIBRUBYARG_SHARED="-Wl,-L/usr/lib -lruby" \
LIBPATH="-L. -L/usr/lib -L../../src/.libs" install || return 1
}