blob: 8b6ab7ae971908dbc2ba3c23d6bd7d8ed370b995 (
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
|
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=php7-brotli
_pkgreal=brotli
pkgver=0.5.2
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"
source="$pkgname-$pkgver.tar.gz::https://github.com/kjdev/php-ext-brotli/archive/$pkgver.tar.gz"
builddir="$srcdir/php-ext-brotli-$pkgver"
build() {
cd "$builddir"
phpize7
./configure \
--prefix=/usr \
--with-php-config=php-config7 \
--with-libbrotli # Use system lib
make
}
package() {
cd "$builddir"
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="6baddd7f714c936e058eace4699f29c738d70b9f86930a51fee3e236923a41a50814296ae4307879df386ad6329f8fa17b1ded9acf6658a93d23366bb6f415c7 php7-brotli-0.5.2.tar.gz"
|