blob: ca9313194f44d2030b6e54d02d96ba6ceb096411 (
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
|
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=php7-brotli
_pkgreal=brotli
pkgver=0.6.2
pkgrel=0
pkgdesc="Brotli Extension for PHP"
url="https://github.com/kjdev/php-ext-brotli"
arch="all"
license="MIT"
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"
build() {
cd "$builddir"
phpize7
./configure \
--prefix=/usr \
--with-php-config=php-config7 \
--with-libbrotli # Use system lib
make
}
check() {
cd "$builddir"
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
}
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="5ebb992a9e2038a9d3f9ad38627bf83d0afadc58f46b3cab39c25d58fc50bebf31881421f837f8a00fc880f664e5f13d54763261b25da40b4bc978a06e756604 php7-brotli-0.6.2.tar.gz"
|