33 lines
1,014 B
Bash
33 lines
1,014 B
Bash
# Template file for 'python3-protobuf'
|
|
pkgname=python3-protobuf
|
|
version=3.15.1
|
|
revision=1
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools python3-wheel"
|
|
depends="python3-setuptools python3-six"
|
|
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/"
|
|
distfiles="${PYPI_SITE}/p/protobuf/protobuf-${version}.tar.gz"
|
|
checksum=824dbae3390fcc3ea1bf96748e6da951a601802894cf7e1465e72b4732538cab
|
|
|
|
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
|
|
|
|
do_check() {
|
|
echo "skipping check: package ships with no tests"
|
|
}
|
|
|
|
post_install() {
|
|
sed -n 1,29p google/protobuf/__init__.py >LICENSE
|
|
vlicense LICENSE
|
|
}
|