mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 14:47:15 +08:00
40 lines
1.4 KiB
Bash
40 lines
1.4 KiB
Bash
# $Id: PKGBUILD 79791 2010-05-07 14:12:03Z dan $
|
|
# Maintainer: Eric Belanger <eric@archlinux.org>
|
|
# Contributor: Tom K <tom@archlinux.org>
|
|
|
|
pkgname=rrdtool
|
|
pkgver=1.4.3
|
|
pkgrel=2
|
|
pkgdesc="Data logging and graphing application"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.rrdtool.org"
|
|
license=('GPL')
|
|
depends=('libpng' 'libxml2' 'pango')
|
|
makedepends=('intltool' 'ruby' 'python' 'tcl' 'lua')
|
|
optdepends=('tcl: to use corresponding binding' \
|
|
'python: to use corresponding binding' \
|
|
'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
|
|
gcc-4.5-issue-262.patch)
|
|
md5sums=('492cf946c72f85987238faa2c311b7bb'
|
|
'4ee60200c9d0d43444b884958444579b')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
patch -Np3 < "${srcdir}/gcc-4.5-issue-262.patch"
|
|
./configure --prefix=/usr --localstatedir=/var --disable-rpath --enable-perl \
|
|
--enable-perl-site-install --with-perl-options='INSTALLDIRS=vendor' \
|
|
--enable-ruby --enable-ruby-site-install --enable-python \
|
|
--enable-lua --enable-lua-site-install \
|
|
--enable-tcl || return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" LIBRUBYARG_SHARED="-Wl,-L/usr/lib -lruby" \
|
|
LIBPATH="-L. -L/usr/lib -L../../src/.libs" install || return 1
|
|
}
|