aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-pecl-grpc/APKBUILD
blob: 515b270ac0a7cac8274623ba156d335025bb0b94 (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.23.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="2ecc35400b5e2fe9868471d7637b254ad22d7f0ae8ca18a33b4467e68ff1e18fed4cde7ad4a6cc1b4ebb61a99b632e2420f13cbaefa485763cb064d45538fd2a  grpc-1.23.0.tgz"