aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-pecl-grpc/APKBUILD
blob: 721cc94b1361bd31b28a3f9580c5590ae153d95a (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
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php7-pecl-grpc
_extname=grpc
pkgver=1.34.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 !armv7 !armhf" # armv7, armhf, ppc64le: build failures
license="Apache-2.0"
depends="php7-common"
makedepends="php7-dev openssl-dev linux-headers"
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir"/$_extname-$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=modules/$_extname.so --ri $_extname
}

package() {
	make INSTALL_ROOT="$pkgdir" install
	local _confdir="$pkgdir"/etc/php7/conf.d
	install -d $_confdir
	echo "extension=$_extname.so" > $_confdir/50_$_extname.ini
}

sha512sums="86a1517fd4cb7361c7f50f65d52bf6a95ae2e2140857f5dc73bdf7fadd2a8c509f341eab6daa58fcf43336441d4f9be6f93318e6bab1fe46a5330da8441f013e  php-pecl-grpc-1.34.0.tgz"