Commit 2776eabe authored by Andy Postnikov's avatar Andy Postnikov Committed by Leo

testing/php8-pecl-grpc: new aport

parent 7cc3f154
Pipeline #61415 skipped
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php8-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="php8-common"
makedepends="php8-dev openssl-dev linux-headers"
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir"/$_extname-$pkgver
build() {
phpize8
./configure --prefix=/usr --with-php-config=php-config8
make
}
check() {
# Test suite is not a part of pecl release.
php8 -d extension=modules/$_extname.so --ri $_extname
}
package() {
make INSTALL_ROOT="$pkgdir" install
local _confdir="$pkgdir"/etc/php8/conf.d
install -d $_confdir
echo "extension=$_extname.so" > $_confdir/50_$_extname.ini
}
sha512sums="86a1517fd4cb7361c7f50f65d52bf6a95ae2e2140857f5dc73bdf7fadd2a8c509f341eab6daa58fcf43336441d4f9be6f93318e6bab1fe46a5330da8441f013e php-pecl-grpc-1.34.0.tgz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment