mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-08 17:32:23 +01:00
36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
pkgname=php7-pecl-grpc
|
|
_extname=grpc
|
|
pkgver=1.39.0
|
|
pkgrel=0
|
|
pkgdesc="PHP 7 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 !mips64" # build failures
|
|
license="Apache-2.0"
|
|
depends="php7-common"
|
|
makedepends="php7-dev openssl-dev linux-headers"
|
|
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
|
|
builddir="$srcdir"/$_extname-$pkgver
|
|
|
|
build() {
|
|
phpize7
|
|
./configure --prefix=/usr --with-php-config=php-config7
|
|
make
|
|
}
|
|
|
|
check() {
|
|
# Test suite is not a part of pecl release.
|
|
php7 -d extension=modules/$_extname.so --ri $_extname
|
|
}
|
|
|
|
package() {
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
local _confdir="$pkgdir"/etc/php7/conf.d
|
|
install -d $_confdir
|
|
echo "extension=$_extname" > $_confdir/50_$_extname.ini
|
|
}
|
|
|
|
sha512sums="
|
|
08eb4e529d5e9cb8d024cb43953780ccb099ccaf1d62b79297e180853f98ddd8514b5318add64f3a77f2c0c975133a1996daf12fdbeed6af694a4cbfda31995e php-pecl-grpc-1.39.0.tgz
|
|
"
|