summaryrefslogtreecommitdiff
path: root/main/rrdtool/APKBUILD
blob: 98269b52b79c10b07bff0768b109a479a336b55e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=rrdtool
pkgver=1.2.30
pkgrel=1
pkgdesc="Data logging and graphing application"
url="http://www.rrdtool.org"
license="GPL"
depends="libart-lgpl libpng freetype uclibc"
makedepends="libart-lgpl-dev libpng-dev freetype-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="http://oss.oetiker.ch/$pkgname/pub/$pkgname-$pkgver.tar.gz"

build() {
	cd "$srcdir"/$pkgname-$pkgver

	./configure --prefix=/usr \
		--disable-tcl \
		--disable-python \
		--disable-ruby

	make || return 1
	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/
}

md5sums="19b24f7184a8dbf7b48c1bbb565ad9fb  rrdtool-1.2.30.tar.gz"