mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
community/grpc to 1.38.0-2
This commit is contained in:
parent
c785341dcf
commit
fa1df14e27
1 changed files with 9 additions and 1 deletions
|
@ -9,7 +9,7 @@ pkgbase='grpc'
|
|||
pkgname=('grpc' 'python-grpcio' 'php-grpc' 'php7-grpc' 'grpc-cli')
|
||||
pkgver=1.38.0
|
||||
_gtestver=c9ccac7cb7345901884aabf5d1a786cfa6e2f397
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="High performance, open source, general RPC framework that puts mobile and HTTP/2 first."
|
||||
arch=('x86_64')
|
||||
url='https://grpc.io'
|
||||
|
@ -88,6 +88,8 @@ build() {
|
|||
|
||||
# Python
|
||||
cd "$srcdir/$pkgbase-$pkgver"
|
||||
GRPC_PYTHON_CFLAGS="-fvisibility=hidden -fno-wrapv -fno-exceptions $(pkg-config --cflags protobuf) -std=c++17" \
|
||||
GRPC_PYTHON_LDFLAGS="$(pkg-config --libs protobuf)" \
|
||||
GRPC_PYTHON_BUILD_WITH_CYTHON=1 \
|
||||
GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 \
|
||||
GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1 \
|
||||
|
@ -98,6 +100,12 @@ build() {
|
|||
python setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$srcdir/$pkgbase-$pkgver"
|
||||
local _pyver=$(python -c "import sys; print('{0}.{1}'.format(*sys.version_info[:2]))")
|
||||
PYTHONPATH="python_build/lib.linux-$CARCH-$_pyver" python -c 'import grpc'
|
||||
}
|
||||
|
||||
package_grpc() {
|
||||
depends=('c-ares' 'protobuf' 'openssl' 're2' 'abseil-cpp')
|
||||
provides=(
|
||||
|
|
Loading…
Reference in a new issue