mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +03:00
35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
pkgname=php82-pecl-grpc
|
|
_extname=grpc
|
|
pkgver=1.51.1
|
|
pkgrel=0
|
|
pkgdesc="PHP 8.2 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="php82-common"
|
|
makedepends="php82-dev openssl-dev linux-headers"
|
|
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
|
|
builddir="$srcdir"/$_extname-$pkgver
|
|
|
|
build() {
|
|
phpize82
|
|
./configure --prefix=/usr --with-php-config=php-config82
|
|
make
|
|
}
|
|
|
|
check() {
|
|
# Test suite is not a part of pecl release.
|
|
php82 -d extension=modules/$_extname.so --ri $_extname
|
|
}
|
|
|
|
package() {
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
local _confdir="$pkgdir"/etc/php82/conf.d
|
|
install -d $_confdir
|
|
echo "extension=$_extname" > $_confdir/50_$_extname.ini
|
|
}
|
|
|
|
sha512sums="
|
|
9531d31d771727a6d994fb304467d908329f8ec85f6e484effd7bc75bc6ccb005dd623b730e6664837571abefbba1493633c10c171202429f447496fe491fc16 php-pecl-grpc-1.51.1.tgz
|
|
"
|