aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-pecl-grpc/APKBUILD
blob: 645d5c2b1b0046c55bc1dca3177e33467622f8fa (plain) (blame)
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
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php7-pecl-grpc
_pkgreal=grpc
pkgver=1.26.0
pkgrel=0
pkgdesc="PHP extension provide a concrete implementation of the gRPC protocol, layered over HTTP/2."
url="https://pecl.php.net/package/grpc"
arch="all !s390x !ppc64le"
license="Apache-2.0"
depends="php7-common"
makedepends="php7-dev autoconf re2c openssl-dev zlib-dev"
source="https://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
builddir="$srcdir"/$_pkgreal-$pkgver

build() {
	phpize7
	./configure --prefix=/usr --with-php-config=php-config7
	make
}

check() {
	# Test suite is not a part of pecl release.
	php7 -d extension="$builddir"/modules/$_pkgreal.so --ri $_pkgreal
}

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="76ac9edf52fe3dd6024b6d8168eb7f15541a5ef55f04cdcd2c95d8f727cd2304df27cf83265c80933b1d932c7063ead94da0ac1cea4349dc67b32291cfe6533e  grpc-1.26.0.tgz"