25 lines
733 B
Bash
25 lines
733 B
Bash
# Template file for 'python3-grpcio-tools'
|
|
pkgname=python3-grpcio-tools
|
|
version=1.34.1
|
|
revision=1
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools"
|
|
makedepends="python3-devel"
|
|
depends="python3-protobuf python3-grpcio"
|
|
short_desc="Protobuf code generator for gRPC"
|
|
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
|
license="Apache-2.0"
|
|
homepage="https://grpc.io"
|
|
distfiles="${PYPI_SITE}/g/grpcio-tools/grpcio-tools-${version}.tar.gz"
|
|
checksum=b411f36748f4ead33411544d785e37825598bbb8abbe79eca422e395be5a3d08
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
makedepends+=" libatomic-devel"
|
|
fi
|
|
|
|
post_patch() {
|
|
if [ "${CROSS_BUILD}" ]; then
|
|
vsed -i setup.py -e "s@['\"]cc['\"]@'${CC}'@g"
|
|
fi
|
|
}
|