blob: c40eb434c45eced8d942353bd0b850a13fa7a110 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Contributor: Keith Maxwell <keith.maxwell@gmail.com>
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=py3-grpcio
pkgver=1.28.1
pkgrel=0
pkgdesc="gRPC Python HTTP/2-based RPC framework"
url="https://grpc.io"
arch="all !ppc64le" # no ppc64le -needs UnscaledCycleClock::Frequency()
license="Apache-2.0"
makedepends="python3-dev py3-setuptools py3-six cython zlib-dev openssl-dev
c-ares-dev linux-headers"
options="!check" # tests depend upon bazel
_abseil_cpp_rev=b832dce8489ef7b6231384909fd9b68d5a5ff2b7
source="grpc-$pkgver.tar.gz::https://github.com/grpc/grpc/archive/v$pkgver.tar.gz
abseil-cpp-$_abseil_cpp_rev.tar.gz::https://github.com/abseil/abseil-cpp/archive/$_abseil_cpp_rev.tar.gz
"
builddir="$srcdir/grpc-$pkgver"
unpack() {
default_unpack
# the archive is missing git submodules
rmdir "$builddir/third_party/abseil-cpp"
ln -sn "$srcdir/abseil-cpp-$_abseil_cpp_rev/" "$builddir/third_party/abseil-cpp"
}
_set_environment_variables() {
export GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY=1
export GRPC_PYTHON_BUILD_SYSTEM_CARES=1
export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
export GRPC_PYTHON_BUILD_CYTHON=1
}
build() {
_set_environment_variables
python3 setup.py build
}
package() {
_set_environment_variables
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="5cc4993470e2df21447d032ddeb65ab4175bb8acad5a06fdd22564068b80a5be255ef0e44d36732642d39dc3eaec02a93d2aaf6e369ad5dc43ff99b5023f357b grpc-1.28.1.tar.gz
1709f93c5f6bda7aefe7e8a19c86e93e00b3b06600f38ccb866c997221fe0bd44e903208cc1677ed3ec5e3efe9f69c550b03bb6b9edc307d9ccc38290bbae627 abseil-cpp-b832dce8489ef7b6231384909fd9b68d5a5ff2b7.tar.gz"
|