diff --git a/testing/php85-spx/APKBUILD b/testing/php85-spx/APKBUILD new file mode 100644 index 00000000000..5fb404d6d2e --- /dev/null +++ b/testing/php85-spx/APKBUILD @@ -0,0 +1,42 @@ +# Maintainer: Andy Postnikov +pkgname=php85-spx +_extname=spx +pkgver=0.4.20 +pkgrel=0 +pkgdesc="A simple & straight-to-the-point PHP 8.5 profiling extension with its built-in web UI" +url="https://github.com/NoiseByNorthwest/php-spx" +arch="x86_64 aarch64" +license="GPL-3.0-or-later" +_phpv=85 +_php=php$_phpv +depends="$_php-common" +makedepends="$_php-dev zlib-dev" +checkdepends="$_php-cgi" +source="php-$_extname-$pkgver.tar.gz::https://github.com/NoiseByNorthwest/php-spx/archive/v$pkgver.tar.gz + fix-php85.patch" +builddir="$srcdir/php-$_extname-$pkgver" + +build() { + phpize$_phpv + ./configure --prefix=/usr --with-php-config=php-config$_phpv \ + --with-spx-assets-dir=/usr/share/$_php/$_extname + make +} + +check() { + TEST_PHP_CGI_EXECUTABLE=/usr/bin/php-cgi$_phpv \ + make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test TESTS=--show-diff + $_php -d extension=modules/$_extname.so --ri $_extname +} + +package() { + make INSTALL_ROOT="$pkgdir" install + local _confdir="$pkgdir"/etc/$_php/conf.d + install -d $_confdir + echo "extension=$_extname" > $_confdir/$_extname.ini +} + +sha512sums=" +60ef13dc9396a1d21c8f9523f8b978f4b79159f063e72506b02a665e77c03ec04bd90bcc0feb8f5c573b82a54f3ec99a073a4e5686d7cff2bb1271b842e6238f php-spx-0.4.20.tar.gz +de7e241ba4cd7d1d67ad4b675f268f278638955ae40fce96e26611a52cc8b5137156602f22d6af1282ca023a0bc56f0a64ee84ed2936bc9d461b48cb37b3850a fix-php85.patch +" diff --git a/testing/php85-spx/fix-php85.patch b/testing/php85-spx/fix-php85.patch new file mode 100644 index 00000000000..ac1577e71d0 --- /dev/null +++ b/testing/php85-spx/fix-php85.patch @@ -0,0 +1,11 @@ +--- a/src/php_spx.h ++++ b/src/php_spx.h +@@ -31,7 +31,7 @@ + # error "Only x86-64 and ARM64 architectures are supported" + #endif + +-#if ZEND_MODULE_API_NO < 20100525 || ZEND_MODULE_API_NO > 20240924 ++#if ZEND_MODULE_API_NO < 20100525 || ZEND_MODULE_API_NO > 20240925 + # error "Only the following PHP versions are supported: 5.4 to 8.4" + #endif +