mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-29 02:11:16 +02:00
46 lines
1.1 KiB
Plaintext
46 lines
1.1 KiB
Plaintext
# 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"
|