aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-brotli/APKBUILD
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.eu>2019-05-23 14:42:53 +0200
committerKevin Daudt <kdaudt@alpinelinux.org>2019-05-24 10:47:48 +0000
commitc36a1cd478b9d4a96e779df2565ec2b1a0cf617a (patch)
tree82ab20ce868ca0aaee8bb906a3db64e038423ee9 /community/php7-brotli/APKBUILD
parentf7ff1b606d040ecd6db56a1dbe861e0a7094cf3b (diff)
downloadaports-c36a1cd478b9d4a96e779df2565ec2b1a0cf617a.tar.gz
aports-c36a1cd478b9d4a96e779df2565ec2b1a0cf617a.tar.bz2
aports-c36a1cd478b9d4a96e779df2565ec2b1a0cf617a.tar.xz
community/php7-brotli: move from testing
Closes GH-8018
Diffstat (limited to 'community/php7-brotli/APKBUILD')
-rw-r--r--community/php7-brotli/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/community/php7-brotli/APKBUILD b/community/php7-brotli/APKBUILD
new file mode 100644
index 0000000000..8d254069d7
--- /dev/null
+++ b/community/php7-brotli/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: TBK <alpine@jjtc.eu>
+# Maintainer: TBK <alpine@jjtc.eu>
+pkgname=php7-brotli
+_pkgreal=brotli
+pkgver=0.7.0
+pkgrel=0
+pkgdesc="Brotli Extension for PHP"
+url="https://github.com/kjdev/php-ext-brotli"
+arch="all"
+license="MIT"
+depends="php7-common"
+makedepends="autoconf brotli-dev php7-dev re2c"
+checkdepends="php7-cgi"
+source="$pkgname-$pkgver.tar.gz::https://github.com/kjdev/php-ext-brotli/archive/$pkgver.tar.gz
+ fix-skip-steams_006.patch
+ "
+builddir="$srcdir/php-ext-brotli-$pkgver"
+
+build() {
+ phpize7
+ ./configure \
+ --prefix=/usr \
+ --with-php-config=php-config7 \
+ --with-libbrotli # Use system lib
+ make
+}
+
+check() {
+ make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 SKIP_ONLINE_TESTS=1 test
+}
+
+package() {
+ make INSTALL_ROOT="$pkgdir"/ install
+ install -d "$pkgdir"/etc/php7/conf.d
+ echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/50_$_pkgreal.ini
+}
+
+sha512sums="4d345fb4ed668ceec7cfb90e300ee5de883be142292a138333edee014169c17f2ba012e42e746d00af4c6fac889c15cbd8f9956d89246a55b42fb32b013a4e81 php7-brotli-0.7.0.tar.gz
+daa8078c48f6c1a32661c05d374419bfa690ac8b7326a8fdac86106d6e6142719393b0a2f3b82f33212da78a8fa7c6bebcdda1573419ef555ec69cd6b483971f fix-skip-steams_006.patch"