aports/testing/php81-pecl-xmlrpc/APKBUILD
Andy Postnikov 71dd6fb2fb testing/php81: enable on loongarch64
The version is old but has 30% usage and will be maintained one more year

reverts 514075c652
2024-10-05 13:02:40 +00:00

41 lines
1.4 KiB
Text

# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php81-pecl-xmlrpc
_extname=xmlrpc
pkgver=1.0.0_rc3
_pkgver=${pkgver/_rc/RC}
pkgrel=2
pkgdesc="PHP 8.1 extension to write XML-RPC servers and clients - PECL"
url="https://pecl.php.net/package/xmlrpc"
arch="all"
license="PHP-3.01"
depends="php81-xml"
makedepends="php81-dev libxml2-dev"
source="php-pecl-$_extname-$pkgver.tar.gz::https://pecl.php.net/get/$_extname-$_pkgver.tgz
php-pecl-$_extname-fix-test.patch::https://github.com/php/pecl-networking-xmlrpc/commit/7dade03efe2aa11caee444968263e9f9bc8b2ea0.diff"
builddir="$srcdir"/$_extname-$_pkgver
build() {
phpize81
./configure --prefix=/usr --with-php-config=/usr/bin/php-config81
make
}
check() {
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test TESTS=--show-diff \
PHP_TEST_SHARED_EXTENSIONS=" \
-d extension=/usr/lib/php81/modules/xml.so \
-d extension=modules/$_extname.so"
php81 -d extension=modules/$_extname.so --ri $_extname
}
package() {
make INSTALL_ROOT="$pkgdir" install
local _confdir="$pkgdir"/etc/php81/conf.d
install -d $_confdir
echo "extension=$_extname" > $_confdir/$_extname.ini
}
sha512sums="
aa8e24d5a732b175adb9870357991d48ead046faed89e579eb63afe06c7ef20af9de29e2d70e71e54e5a15ee37265f69a7d52b39ef2465ced93ba818c1f7e9c1 php-pecl-xmlrpc-1.0.0_rc3.tar.gz
c397f513f344b59a5923663dd9a27f1add051ce47b0902c313abdfed076f8525f6d3547b6f282987265848b9f74ac8fe733478ae03bc771b21c3aee918ba0534 php-pecl-xmlrpc-fix-test.patch
"