blob: f6bc9241f333bbac96fadd29b09d29fbd45ee967 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=php7-brotli
_pkgreal=brotli
pkgver=0.7.0
pkgrel=1
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"
|