summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/rrdtool/APKBUILD14
1 files changed, 10 insertions, 4 deletions
diff --git a/main/rrdtool/APKBUILD b/main/rrdtool/APKBUILD
index ce1f2c6c6..333abc933 100644
--- a/main/rrdtool/APKBUILD
+++ b/main/rrdtool/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=rrdtool
pkgver=1.2.30
-pkgrel=4
+pkgrel=5
pkgdesc="Data logging and graphing application"
url="http://www.rrdtool.org"
license="GPL"
@@ -17,13 +17,17 @@ build() {
--disable-tcl \
--disable-python \
--disable-ruby \
- --enable-rrdcgi
+ --enable-rrdcgi \
+ --enable-perl-site-install \
+ --with-perl-options="INSTALLDIRS=vendor" \
+ || return 1
make || return 1
}
package() {
cd "$_builddir"
+ export INSTALLDIRS=vendor
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" -name '.packlist' -delete
find "$pkgdir" -name 'perllocal.pod' -delete
@@ -37,8 +41,10 @@ dev() {
perl_rrd() {
pkgdesc="Perl interface for rrdtool"
- mkdir -p "$subpkgdir"/usr/lib
- mv "$pkgdir"/usr/lib/perl "$subpkgdir"/usr/lib/
+ mkdir -p "$subpkgdir"/usr/lib \
+ "$pkgdir"/usr/share
+ mv "$pkgdir"/usr/lib/perl* "$subpkgdir"/usr/lib/
+ mv "$pkgdir"/usr/share/perl* "$subpkgdir"/usr/share/
}
md5sums="19b24f7184a8dbf7b48c1bbb565ad9fb rrdtool-1.2.30.tar.gz"