aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2021-01-18 22:54:28 +0200
committerAndy Postnikov <apostnikov@gmail.com>2021-01-18 21:12:59 +0000
commitc3216fa5d2ddf060104165e708c49b5cea964d5f (patch)
tree37643961f10c09db56c8f7eada7bf7963bd0ce72
parentdd685a4f3afcf809387bc210d3f13395d03b19cd (diff)
downloadaports-c3216fa5d2ddf060104165e708c49b5cea964d5f.tar.gz
aports-c3216fa5d2ddf060104165e708c49b5cea964d5f.tar.bz2
aports-c3216fa5d2ddf060104165e708c49b5cea964d5f.tar.xz
testing/php7-pecl-varnish: upgrade to 1.2.6 and modernize
-rw-r--r--testing/php7-pecl-varnish/APKBUILD25
1 files changed, 12 insertions, 13 deletions
diff --git a/testing/php7-pecl-varnish/APKBUILD b/testing/php7-pecl-varnish/APKBUILD
index 25a6e4183a..009d18bfa2 100644
--- a/testing/php7-pecl-varnish/APKBUILD
+++ b/testing/php7-pecl-varnish/APKBUILD
@@ -1,37 +1,36 @@
# Contributor: Andy Postnikov <apostnikov@gmail.com>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php7-pecl-varnish
-_pkgreal=varnish
-pkgver=1.2.4
-pkgrel=4
-pkgdesc="PHP7 extension: makes it possible to interact with a running varnish instance through TCP socket or shared memory."
+_extname=varnish
+pkgver=1.2.6
+pkgrel=0
+pkgdesc="PHP 7 extension: makes it possible to interact with a running varnish instance through TCP socket or shared memory."
url="https://pecl.php.net/package/varnish"
arch="all"
license="BSD-3-Clause"
depends="php7-common"
makedepends="php7-dev autoconf libtool varnish-dev"
-source="https://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
-builddir="$srcdir/$_pkgreal-$pkgver"
+source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
+builddir="$srcdir/$_extname-$pkgver"
provides="php7-varnish=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-varnish" # for backward compatibility
build() {
- cd "$builddir"
phpize7
./configure --prefix=/usr --with-php-config=php-config7
make
}
check() {
- cd "$builddir"
- make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
+ php7 -dextension=modules/$_extname.so --ri $_extname
+ make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test TESTS=--show-diff
}
package() {
- cd "$builddir"
make INSTALL_ROOT="$pkgdir" install
- install -d "$pkgdir"/etc/php7/conf.d
- echo "extension=$_pkgreal.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="23c39c432bdd7c932c8096ed7946300d08fd33b6d4445e5025dddcdd669ca707e045fad565e4201e46d14f82659ae34b8efe5178d06bf0d11d0755b14eb48fed varnish-1.2.4.tgz"
+sha512sums="d17e285a134d2541ddea2bfc8627bc4926b3dbeeee1e9c729cd49c17608030764435662148b0dc43dc0eb1eab5d5dc8fd88c86aca40178afaf1ec85fa3e63aae php-pecl-varnish-1.2.6.tgz"