# Maintainer: Andy Postnikov pkgname=php82-spx _extname=spx pkgver=0.4.13 pkgrel=0 pkgdesc="A simple & straight-to-the-point PHP 8.2 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=82 _php=php$_phpv depends="$_php-common" makedepends="$_php-dev zlib-dev" source="php-$_extname-$pkgver.tar.gz::https://github.com/NoiseByNorthwest/php-spx/archive/v$pkgver.tar.gz" builddir="$srcdir/php-$_extname-$pkgver" build() { phpize$_phpv ./configure --prefix=/usr --with-php-config=php-config$_phpv make } check() { 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=" 9b59da53109db008ca3c09e9d07d0a648a866f5b525c913182360854c3d5dad58b948d111c2eee57683dc83f5563a4934cff52e6b62d9bbf7c6e1de1bc1f922f php-spx-0.4.13.tar.gz "