aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2021-01-23 04:39:03 +0200
committerAndy Postnikov <apostnikov@gmail.com>2021-01-23 04:42:06 +0200
commitf6a43847b73d590a373b21d87570b56790f187d0 (patch)
treecb4f45fe8fd0646cf23aab875edfc4304b7a72f9
parent238372cab24795617f4b26f167adbc5ad821a00b (diff)
downloadaports-f6a43847b73d590a373b21d87570b56790f187d0.tar.gz
aports-f6a43847b73d590a373b21d87570b56790f187d0.tar.bz2
aports-f6a43847b73d590a373b21d87570b56790f187d0.tar.xz
testing/php7-spx: modernize
-rw-r--r--testing/php7-spx/APKBUILD22
1 files changed, 12 insertions, 10 deletions
diff --git a/testing/php7-spx/APKBUILD b/testing/php7-spx/APKBUILD
index 35ca4c9afd..3c36af7436 100644
--- a/testing/php7-spx/APKBUILD
+++ b/testing/php7-spx/APKBUILD
@@ -1,16 +1,16 @@
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php7-spx
-_pkgreal=php-spx
+_extname=spx
pkgver=0.4.10
-pkgrel=0
-pkgdesc="A simple & straight-to-the-point PHP profiling extension with its built-in web UI"
+pkgrel=1
+pkgdesc="A simple & straight-to-the-point PHP 7 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="php7-common"
-makedepends="php7-dev autoconf re2c zlib-dev"
-source="$pkgname-$pkgver.tar.gz::https://github.com/NoiseByNorthwest/php-spx/archive/v$pkgver.tar.gz"
-builddir="$srcdir/$_pkgreal-$pkgver"
+makedepends="php7-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() {
phpize7
@@ -19,13 +19,15 @@ build() {
}
check() {
- make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
+ make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test TESTS=--show-diff
+ php7 -d extension=modules/$_extname.so --ri $_extname
}
package() {
make INSTALL_ROOT="$pkgdir" install
- install -d "$pkgdir"/etc/php7/conf.d
- echo "extension=spx.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini
+ local _confdir="$pkgdir"/etc/php7/conf.d
+ install -d $_confdir
+ echo "extension=$_extname" > $_confdir/$_extname.ini
}
-sha512sums="f89effb851bc9f63e5846b4f8ab998027dfaf214b9111e185fa49dd36377c4ef3d8c98de2f51a7fffca51de7033143f77c5db22a50eb252e1b65d5ebf77a8b16 php7-spx-0.4.10.tar.gz"
+sha512sums="f89effb851bc9f63e5846b4f8ab998027dfaf214b9111e185fa49dd36377c4ef3d8c98de2f51a7fffca51de7033143f77c5db22a50eb252e1b65d5ebf77a8b16 php-spx-0.4.10.tar.gz"