backports/php82-pecl-xmlrpc: new aport
This commit is contained in:
parent
749efd609d
commit
08f91ce909
1 changed files with 39 additions and 0 deletions
39
backports/php82-pecl-xmlrpc/APKBUILD
Normal file
39
backports/php82-pecl-xmlrpc/APKBUILD
Normal file
|
@ -0,0 +1,39 @@
|
|||
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
||||
pkgname=php82-pecl-xmlrpc
|
||||
_extname=xmlrpc
|
||||
pkgver=1.0.0_rc3
|
||||
_pkgver=${pkgver/_rc/RC}
|
||||
pkgrel=1
|
||||
pkgdesc="PHP 8.2 extension to write XML-RPC servers and clients - PECL"
|
||||
url="https://pecl.php.net/package/xmlrpc"
|
||||
arch="all"
|
||||
license="PHP-3.01"
|
||||
depends="php82-xml"
|
||||
makedepends="php82-dev libxml2-dev"
|
||||
source="php-pecl-$_extname-$pkgver.tar.gz::https://pecl.php.net/get/$_extname-$_pkgver.tgz"
|
||||
builddir="$srcdir"/$_extname-$_pkgver
|
||||
|
||||
build() {
|
||||
phpize82
|
||||
./configure --prefix=/usr --with-php-config=/usr/bin/php-config82
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test TESTS=--show-diff \
|
||||
PHP_TEST_SHARED_EXTENSIONS=" \
|
||||
-d extension=/usr/lib/php82/modules/xml.so \
|
||||
-d extension=modules/$_extname.so"
|
||||
php82 -d extension=modules/$_extname.so --ri $_extname
|
||||
}
|
||||
|
||||
package() {
|
||||
make INSTALL_ROOT="$pkgdir" install
|
||||
local _confdir="$pkgdir"/etc/php82/conf.d
|
||||
install -d $_confdir
|
||||
echo "extension=$_extname" > $_confdir/$_extname.ini
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
aa8e24d5a732b175adb9870357991d48ead046faed89e579eb63afe06c7ef20af9de29e2d70e71e54e5a15ee37265f69a7d52b39ef2465ced93ba818c1f7e9c1 php-pecl-xmlrpc-1.0.0_rc3.tar.gz
|
||||
"
|
Loading…
Reference in a new issue