# Maintainer: Andy Postnikov pkgname=php7-pecl-grpc _extname=grpc pkgver=1.51.1 pkgrel=0 pkgdesc="PHP 7 extension provide a concrete implementation of the gRPC protocol, layered over HTTP/2." url="https://pecl.php.net/package/grpc" arch="all !s390x !ppc64le !riscv64" # 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" > $_confdir/50_$_extname.ini } sha512sums=" 9531d31d771727a6d994fb304467d908329f8ec85f6e484effd7bc75bc6ccb005dd623b730e6664837571abefbba1493633c10c171202429f447496fe491fc16 php-pecl-grpc-1.51.1.tgz "