void-packages/srcpkgs/python-protobuf/template

33 lines
928 B
Bash

# Template file for 'python-protobuf'
pkgname=python-protobuf
version=3.5.1
revision=1
noarch=yes
wrksrc="protobuf-${version}"
build_style=python-module
pycompile_module="google/protobuf"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools python-six"
short_desc="Python2 bindings for Google Protocol Buffers"
maintainer="Charles E. Lehner <cel@celehner.com>"
homepage="https://developers.google.com/protocol-buffers/"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/p/protobuf/protobuf-${version}.tar.gz"
checksum=95b78959572de7d7fafa3acb718ed71f482932ddddddbd29ba8319c10639d863
post_install() {
sed -n 1,29p google/protobuf/__init__.py >LICENSE
vlicense LICENSE
}
python3-protobuf_package() {
noarch=yes
pycompile_module="google/protobuf"
depends="python3-setuptools python3-six"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}