blob: e1c229a70ac95b6d1d490172dedf5d718e8b4657 (
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
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: Diaz Devera Victor <vitronic2@gmail.com>
pkgname=php-rrd
pkgver=1.1.3
pkgrel=0
pkgdesc="PHP bindings to rrd tool system"
url="http://pecl.php.net/package/rrd"
arch="all"
license="PHP"
depends=
depends_dev="php-dev"
makedepends="$depends_dev rrdtool-dev autoconf"
install=""
subpackages=""
source="http://pecl.php.net/get/rrd-$pkgver.tgz"
_builddir="$srcdir/rrd-$pkgver"
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
phpize || return 1
./configure --prefix=/usr || return 1
make || return 1
}
package() {
cd "$_builddir"
make INSTALL_ROOT="$pkgdir/" install || return 1
install -d "$pkgdir"/etc/php/conf.d || return 1
echo "extension=rrd.so" > "$pkgdir"/etc/php/conf.d/rrd.ini
}
md5sums="bde6c50fa2aa39090ed22e574ac71c5a rrd-1.1.3.tgz"
sha256sums="0415ac51e09fe2e7a999d155d10d6af42ddf40ab0b4847a63ed1f9458533858e rrd-1.1.3.tgz"
sha512sums="356264de1b967af0f78e25e3c0afcbec704dd3e49d828e08d21d744d5fcdc46f4cd7f7c118b4e283c20bcaf2a4c29e0ac9437c7f66ca0d260a76fddf7b9d3242 rrd-1.1.3.tgz"
|