From 15fa802ef8f14b238768dd88588635fd1e0bdb4b Mon Sep 17 00:00:00 2001 From: Andy Postnikov Date: Sun, 20 Jul 2025 15:18:41 +0200 Subject: [PATCH] testing/php85-pecl-vld: new aport --- testing/php85-pecl-vld/APKBUILD | 37 +++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 testing/php85-pecl-vld/APKBUILD diff --git a/testing/php85-pecl-vld/APKBUILD b/testing/php85-pecl-vld/APKBUILD new file mode 100644 index 00000000000..d7be7e19a97 --- /dev/null +++ b/testing/php85-pecl-vld/APKBUILD @@ -0,0 +1,37 @@ +# Maintainer: Andy Postnikov +pkgname=php85-pecl-vld +_extname=vld +pkgver=0.19.1 +pkgrel=0 +pkgdesc="Dumps the internal representation of PHP 8.5 scripts - PECL" +url="https://pecl.php.net/package/vld" +arch="all" +license="BSD-2-Clause" +_phpv=85 +_php=php$_phpv +depends="$_php-common" +makedepends="$_php-dev" +source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz" +builddir="$srcdir/$_extname-$pkgver" + +build() { + phpize$_phpv + ./configure --prefix=/usr --with-php-config=php-config$_phpv + make +} + +check() { + $_php -dextension=modules/$_extname.so --ri $_extname + make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test TESTS=--show-diff +} + +package() { + make INSTALL_ROOT="$pkgdir" install + local _confdir="$pkgdir"/etc/$_php/conf.d + install -d $_confdir + echo "extension=$_extname" > $_confdir/$_extname.ini +} + +sha512sums=" +2229cc9a936dd7bdc26df694f22f19962f3b84185b1e8e4f60f7ba5135224318e38d491a7de3abf9b1d241eaa4fc061cd6053f3f6aca322a58755531fca7e696 php-pecl-vld-0.19.1.tgz +"