blob: 3bf5bbf608a006e8eb04d6f673dcc8aa2747ae67 (
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=php8-pecl-grpc
_extname=grpc
pkgver=1.48.0
pkgrel=0
pkgdesc="PHP 8.0 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="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" > $_confdir/50_$_extname.ini
}
sha512sums="
be5efc623f2bc3a81ac88373869613680c60acd1a0b751a9658e4a2b0e7d40a536e92659608b5efcd45f54c60b044d30406f7e31c11fe49e3981eebfc3764a18 php-pecl-grpc-1.48.0.tgz
"
|