aboutsummaryrefslogblamecommitdiffstats
path: root/community/php7-brotli/APKBUILD
blob: 815016caa339145823f08342d01a370f14288df6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                                   

             
                                  


                                             
                     
                                 
                       
                                                                                                


                                         







                                                 
         

                                                                             

 
           




                                                                                  
                                                                                                                                                                        
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=php7-brotli
_pkgreal=brotli
pkgver=0.11.1
pkgrel=0
pkgdesc="Brotli Extension for PHP"
url="https://github.com/kjdev/php-ext-brotli"
arch="all"
license="MIT"
depends="php7-common"
makedepends="brotli-dev php7-dev"
checkdepends="php7-cgi"
source="$pkgname-$pkgver.tar.gz::https://github.com/kjdev/php-ext-brotli/archive/$pkgver.tar.gz"
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 \
		TEST_PHP_CGI_EXECUTABLE=/usr/bin/php-cgi7 TESTS=--show-diff
}

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="4d73ea67311399c08334c71c6b908d37739ca7e78670506180ff6d8288dc235fbc750b95197a993adf2c1f413a7f734681a283f6c57b6069cf145d9dfd890d4a  php7-brotli-0.11.1.tar.gz"