mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +03:00
36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
# Contributor: Pascal Hofmann <mail@pascalhofmann.de>
|
|
# Contributor: Mickaël Remars <github@remars.com>
|
|
# Maintainer: Mickaël Remars <github@remars.com>
|
|
_extname=rrd
|
|
pkgname=php8-pecl-rrd
|
|
pkgver=2.0.3
|
|
pkgrel=0
|
|
pkgdesc="PHP 8 bindings to rrd tool system - PECL"
|
|
url="https://pecl.php.net/package/rrd"
|
|
arch="all"
|
|
license="BSD-2-Clause" # just one word difference: "owner" in php-rrd's license, "holder" in bsd-2-clause
|
|
depends="php8-common"
|
|
makedepends="php8-dev rrdtool-dev"
|
|
checkdepends="rrdtool"
|
|
source="php-pecl-$_extname-$pkgver.tgz::http://pecl.php.net/get/$_extname-$pkgver.tgz"
|
|
builddir="$srcdir/$_extname-$pkgver"
|
|
|
|
build() {
|
|
phpize8
|
|
./configure --prefix=/usr --with-php-config=php-config8
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test TESTS=--show-diff
|
|
}
|
|
|
|
package() {
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
|
|
local _confdir="$pkgdir"/etc/php8/conf.d
|
|
mkdir -p $_confdir
|
|
echo "extension=$_extname" > $_confdir/20_$_extname.ini
|
|
}
|
|
|
|
sha512sums="28679ccead54806d1e92accc6f5ebab582a41db802f95797ddb43e3e15690889be3437f22e2a14939d217422ac2700ef90ae0a9b36244ddead3856343b3e09b4 php-pecl-rrd-2.0.3.tgz"
|