aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/php7-snappy/APKBUILD19
1 files changed, 12 insertions, 7 deletions
diff --git a/testing/php7-snappy/APKBUILD b/testing/php7-snappy/APKBUILD
index 72ff19644a..a1924858dc 100644
--- a/testing/php7-snappy/APKBUILD
+++ b/testing/php7-snappy/APKBUILD
@@ -1,16 +1,16 @@
# Contributor: Andy Postnikov <apostnikov@gmail.com>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php7-snappy
-_pkgreal=snappy
-pkgver=0.1.12
+_extname=snappy
+pkgver=0.2.1
pkgrel=0
pkgdesc="Snappy Extension for PHP"
url="https://github.com/kjdev/php-ext-snappy"
arch="all"
license="PHP-3.01"
depends="php7-common"
-makedepends="php7-dev snappy-dev"
-source="$pkgname-$pkgver.tar.gz::https://github.com/kjdev/php-ext-snappy/archive/$pkgver.tar.gz"
+makedepends="php7-dev php7-pecl-apcu snappy-dev"
+source="php-$_extname-$pkgver.tar.gz::https://github.com/kjdev/php-ext-snappy/archive/$pkgver.tar.gz"
builddir="$srcdir/php-ext-snappy-$pkgver"
build() {
@@ -23,14 +23,19 @@ build() {
}
check() {
- make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 SKIP_ONLINE_TESTS=1 test
+ local _modules=/usr/lib/php7/modules
+ make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test \
+ SKIP_ONLINE_TESTS=1 PHP_TEST_SHARED_EXTENSIONS=" \
+ -d extension=$_modules/apcu.so \
+ -d extension=modules/$_extname.so" TESTS=--show-diff
+ php7 -d extension=modules/$_extname.so --ri $_extname
}
package() {
make INSTALL_ROOT="$pkgdir"/ install
local confdir="$pkgdir"/etc/php7/conf.d
install -d $confdir
- echo "extension=$_pkgreal.so" > $confdir/50_$_pkgreal.ini
+ echo "extension=$_extname" > $confdir/50_$_extname.ini
}
-sha512sums="793781d0418616850251facad61116012ba81009c5a65e7cb3f44ce1f59039f6840e287b07e253d2c985053b60c61d30cc0c58388c6bf918900aa963e84b251a php7-snappy-0.1.12.tar.gz"
+sha512sums="51cdfe7c5d020cb954cbf555038aca8398867584a587eb838f07089612d3978a182d0bc04015608a2aaf71bf9a5b5896e5d92b56f3b2d5fe9e1116f9509acb1e php-snappy-0.2.1.tar.gz"