aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-pecl-grpc/APKBUILD
blob: 68204703d0757fbb090c329049a717255b95b31e (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
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php7-pecl-grpc
_pkgreal=grpc
pkgver=1.19.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() {
	cd "$builddir"
	phpize7
	./configure --prefix=/usr --with-php-config=php-config7
	make
}

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

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="9b25ca13cb0dc1e89524770696328233c0ab690a60602fc27adbfe1c9ef593412b1850928f567577e169e4094019cf09c58ca6577d76d8c4b7e1295f4f4cff65  grpc-1.19.0.tgz"