mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 14:56:53 +02:00
40 lines
1.3 KiB
Text
40 lines
1.3 KiB
Text
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
pkgname=php81-pecl-grpc
|
|
_extname=grpc
|
|
pkgver=1.71.0
|
|
pkgrel=0
|
|
pkgdesc="PHP 8.1 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 !loongarch64" # build failures
|
|
license="Apache-2.0"
|
|
_phpv=81
|
|
_php=php$_phpv
|
|
depends="$_php-common"
|
|
makedepends="$_php-dev openssl-dev>3 linux-headers"
|
|
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz
|
|
boringssl.patch
|
|
"
|
|
builddir="$srcdir"/$_extname-$pkgver
|
|
|
|
build() {
|
|
phpize$_phpv
|
|
./configure --prefix=/usr --with-php-config=php-config$_phpv
|
|
make
|
|
}
|
|
|
|
check() {
|
|
# Test suite is not a part of pecl release.
|
|
$_php -d extension=modules/$_extname.so --ri $_extname
|
|
}
|
|
|
|
package() {
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
local _confdir="$pkgdir"/etc/$_php/conf.d
|
|
install -d $_confdir
|
|
echo "extension=$_extname" > $_confdir/50_$_extname.ini
|
|
}
|
|
|
|
sha512sums="
|
|
44b9fb517b9e82e1dfa0ac446c00f133db58a8f50306598ba5a94611470a15d80015ec3234ea6e57c183007383363ac7132460b151b4739cc946b32628dbcc81 php-pecl-grpc-1.71.0.tgz
|
|
6b551439ad5fd513720f1a267dab743b1c261f1662dd7a364080ec5e38a41eaf402e8950c8d8a5c3ef49297be8954f10d1ae9414da3ebce96a2dc8d87bee6bfd boringssl.patch
|
|
"
|