diff options
author | Andy Postnikov <apostnikov@gmail.com> | 2021-01-23 04:43:19 +0200 |
---|---|---|
committer | Andy Postnikov <apostnikov@gmail.com> | 2021-01-23 04:50:59 +0200 |
commit | 1f26ec750d6e37e60d668714fc20bb4496cbb3a6 (patch) | |
tree | ac8a500fac81b44d1b14bf11fdc17de317a03029 | |
parent | f6a43847b73d590a373b21d87570b56790f187d0 (diff) | |
download | aports-1f26ec750d6e37e60d668714fc20bb4496cbb3a6.tar.gz aports-1f26ec750d6e37e60d668714fc20bb4496cbb3a6.tar.bz2 aports-1f26ec750d6e37e60d668714fc20bb4496cbb3a6.tar.xz |
testing/php8-spx: new aport
-rw-r--r-- | testing/php8-spx/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/php8-spx/APKBUILD b/testing/php8-spx/APKBUILD new file mode 100644 index 0000000000..70be793291 --- /dev/null +++ b/testing/php8-spx/APKBUILD @@ -0,0 +1,33 @@ +# Maintainer: Andy Postnikov <apostnikov@gmail.com> +pkgname=php8-spx +_extname=spx +pkgver=0.4.10 +pkgrel=0 +pkgdesc="A simple & straight-to-the-point PHP 8 profiling extension with its built-in web UI" +url="https://github.com/NoiseByNorthwest/php-spx" +arch="x86_64" +license="GPL-3.0-or-later" +depends="php8-common" +makedepends="php8-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() { + phpize8 + ./configure --prefix=/usr --with-php-config=php-config8 + make +} + +check() { + make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test TESTS=--show-diff + php8 -d extension=modules/$_extname.so --ri $_extname +} + +package() { + make INSTALL_ROOT="$pkgdir" install + local _confdir="$pkgdir"/etc/php8/conf.d + install -d $_confdir + echo "extension=$_extname" > $_confdir/$_extname.ini +} + +sha512sums="f89effb851bc9f63e5846b4f8ab998027dfaf214b9111e185fa49dd36377c4ef3d8c98de2f51a7fffca51de7033143f77c5db22a50eb252e1b65d5ebf77a8b16 php-spx-0.4.10.tar.gz" |