diff options
Diffstat (limited to 'testing/php7-brotli')
-rw-r--r-- | testing/php7-brotli/APKBUILD | 15 |
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" |