aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-brotli/APKBUILD
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2018-12-29 02:22:17 +0200
committerAndy Postnikov <apostnikov@gmail.com>2019-01-05 21:58:04 +0200
commit0787cf1077e70897c2893d26d82a08e853b6674a (patch)
tree9dc3f6725c841ff4d3dfffb85a5fcfa619a7f11d /testing/php7-brotli/APKBUILD
parent3e700e36c62d09b405ccd21c8f1dff4273b53474 (diff)
downloadaports-0787cf1077e70897c2893d26d82a08e853b6674a.tar.gz
aports-0787cf1077e70897c2893d26d82a08e853b6674a.tar.bz2
aports-0787cf1077e70897c2893d26d82a08e853b6674a.tar.xz
testing/php7-brotli: upgrade to 0.6.1
Diffstat (limited to 'testing/php7-brotli/APKBUILD')
-rw-r--r--testing/php7-brotli/APKBUILD15
1 files changed, 10 insertions, 5 deletions
diff --git a/testing/php7-brotli/APKBUILD b/testing/php7-brotli/APKBUILD
index 8b6ab7ae97..74f1a297d3 100644
--- a/testing/php7-brotli/APKBUILD
+++ b/testing/php7-brotli/APKBUILD
@@ -2,15 +2,14 @@
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=php7-brotli
_pkgreal=brotli
-pkgver=0.5.2
+pkgver=0.6.1
pkgrel=0
pkgdesc="Brotli Extension for PHP"
url="https://github.com/kjdev/php-ext-brotli"
arch="all"
license="MIT"
-options="!check" # Fails bc. test data is not packaged in brotli-dev
-depends="php7"
-makedepends="php7-dev autoconf brotli-dev"
+depends="php7-common"
+makedepends="php7-dev autoconf brotli-dev re2c"
source="$pkgname-$pkgver.tar.gz::https://github.com/kjdev/php-ext-brotli/archive/$pkgver.tar.gz"
builddir="$srcdir/php-ext-brotli-$pkgver"
@@ -24,6 +23,12 @@ build() {
make
}
+check() {
+ cd "$builddir"
+ rm -f tests/compatibility.phpt tests/roundtrip.phpt # No test data in PECL
+ make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
+}
+
package() {
cd "$builddir"
make INSTALL_ROOT="$pkgdir"/ install
@@ -31,4 +36,4 @@ package() {
echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/50_$_pkgreal.ini
}
-sha512sums="6baddd7f714c936e058eace4699f29c738d70b9f86930a51fee3e236923a41a50814296ae4307879df386ad6329f8fa17b1ded9acf6658a93d23366bb6f415c7 php7-brotli-0.5.2.tar.gz"
+sha512sums="d56ddc78c5155d5c8e361c1866cc39d3ebde27dcd7df7b9e36a839c768fd6b193ebc852db743526c3c08bc2a4f634bf46cb9cd833f8676705606b10b78fa99ed php7-brotli-0.6.1.tar.gz"