core/rrdtool/PKGBUILD

41 lines
1.5 KiB
Bash
Raw Normal View History

2012-10-03 20:48:05 +08:00
# Maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
# Contributors from Arch: Eric Belanger <eric@archlinux.org>
# Tom K <tom@archlinux.org>
2010-03-14 23:48:48 +08:00
pkgname=rrdtool
2012-10-03 20:48:05 +08:00
pkgver=1.4.7
pkgrel=2
2010-03-14 23:48:48 +08:00
pkgdesc="Data logging and graphing application"
arch=('x86_64')
2010-03-14 23:48:48 +08:00
url="http://www.rrdtool.org"
license=('GPL')
2010-05-17 15:50:50 +08:00
depends=('libpng' 'libxml2' 'pango')
2012-10-03 20:48:05 +08:00
makedepends=('intltool' 'ruby' 'python2' 'tcl' 'lua' 'groff')
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")
2012-10-03 20:48:05 +08:00
sha1sums=('faab7df7696b69f85d6f89dd9708d7cf0c9a273b')
2010-03-14 23:48:48 +08:00
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
2012-10-03 20:48:05 +08:00
# make ruby install to vendor_ruby instead of site_ruby (reported: https://bugs.archlinux.org/task/28521)
sed -e 's/$(RUBY) extconf.rb/& --vendor/' -i bindings/Makefile.in
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 \
2012-10-03 20:48:05 +08:00
--enable-tcl --disable-libwrap
make
2010-05-17 15:50:50 +08:00
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
2012-10-03 20:48:05 +08:00
make DESTDIR="${pkgdir}" install
install -D -m644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
2010-03-14 23:48:48 +08:00
}