aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php8-pecl-xmlrpc/APKBUILD
blob: af4fad7f8f55166f0bea2a7653c2e7d88e9f66d9 (plain) (blame)
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
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php8-pecl-xmlrpc
_extname=xmlrpc
pkgver=1.0.0_rc2
_pkgver=${pkgver/_rc/RC}
pkgrel=0
pkgdesc="PHP 8 extension to write XML-RPC servers and clients - PECL"
url="https://pecl.php.net/package/xmlrpc"
arch="all"
license="PHP-3.01"
depends="php8-xml"
makedepends="php8-dev libxml2-dev"
source="php-pecl-$_extname-$pkgver.tar.gz::https://pecl.php.net/get/$_extname-$_pkgver.tgz"
builddir="$srcdir"/$_extname-$_pkgver

build() {
	phpize8
	./configure --prefix=/usr --with-php-config=/usr/bin/php-config8
	make
}

check() {
	make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test TESTS=--show-diff \
		PHP_TEST_SHARED_EXTENSIONS=" \
		-d extension=/usr/lib/php8/modules/xml.so \
		-d extension=modules/$_extname.so"
	php8 -d extension=modules/$_extname.so --ri $_extname
}

package() {
	make INSTALL_ROOT="$pkgdir" install
	local _confdir="$pkgdir"/etc/php8/conf.d
	install -d $_confdir
	echo "extension=$_extname" > $_confdir/$_extname.ini
}

sha512sums="127ca134c55ab0f1feff2e322c579ed80b7ad797f2df6f7ee46cb64e7b1c2c58e648ff8946552e99e9a19a60f7007d202334aaf7c5ee7c2c9c1e5fc3249b5924  php-pecl-xmlrpc-1.0.0_rc2.tar.gz"