diff --git a/srcpkgs/python3-grpcio-tools/template b/srcpkgs/python3-grpcio-tools/template new file mode 100644 index 00000000000..5fd2235a5ff --- /dev/null +++ b/srcpkgs/python3-grpcio-tools/template @@ -0,0 +1,25 @@ +# Template file for 'python3-grpcio-tools' +pkgname=python3-grpcio-tools +version=1.32.0 +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 " +license="Apache-2.0" +homepage="https://grpc.io" +distfiles="${PYPI_SITE}/g/grpcio-tools/grpcio-tools-${version}.tar.gz" +checksum=28547272c51e1d2d343685b9f531e85bb90ad7bd93e726ba646b5627173cbc47 + +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 +} diff --git a/srcpkgs/python3-grpcio-tools/update b/srcpkgs/python3-grpcio-tools/update new file mode 100644 index 00000000000..e3360827d9a --- /dev/null +++ b/srcpkgs/python3-grpcio-tools/update @@ -0,0 +1 @@ +pattern="grpcio-tools-\K[0-9.]+(?=.tar)"