1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/testing/php8-pecl-grpc/APKBUILD
2022-12-02 12:21:49 +00:00

35 lines
1 KiB
Text

# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php8-pecl-grpc
_extname=grpc
pkgver=1.51.1
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>3 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="
9531d31d771727a6d994fb304467d908329f8ec85f6e484effd7bc75bc6ccb005dd623b730e6664837571abefbba1493633c10c171202429f447496fe491fc16 php-pecl-grpc-1.51.1.tgz
"