mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-26 21:55:19 +02:00
32 lines
1.1 KiB
Bash
32 lines
1.1 KiB
Bash
# Template file for 'python3-protobuf'
|
|
pkgname=python3-protobuf
|
|
version=4.23.4
|
|
revision=1
|
|
build_style=python3-module
|
|
build_wrksrc=python
|
|
hostmakedepends="python3-setuptools python3-wheel protobuf"
|
|
depends="python3-setuptools python3-six"
|
|
checkdepends="python3-numpy"
|
|
short_desc="Python3 bindings for Google Protocol Buffers"
|
|
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://developers.google.com/protocol-buffers/"
|
|
# PyPi release does not have bits for cppext
|
|
distfiles="https://github.com/protocolbuffers/protobuf/releases/download/v${version#*.}/protobuf-${version#*.}.tar.gz"
|
|
checksum=a700a49470d301f1190a487a923b5095bf60f08f4ae4cac9f5f7c36883d17971
|
|
make_check=no # ImportError: cannot import name 'unittest_retention_pb2' from 'google.protobuf'
|
|
|
|
build_options="cppext"
|
|
build_options_default="cppext"
|
|
desc_option_cppext="Build C++ extension to improve performance"
|
|
|
|
if [ "$build_option_cppext" ]; then
|
|
make_build_args="--cpp_implementation"
|
|
make_install_args="--cpp_implementation"
|
|
makedepends+=" python3-devel protobuf-devel"
|
|
fi
|
|
|
|
post_install() {
|
|
sed -n 1,29p google/protobuf/__init__.py >LICENSE
|
|
vlicense LICENSE
|
|
}
|