void-packages/srcpkgs/python-protobuf/template

31 lines
867 B
Bash

# Template file for 'python-protobuf'
pkgname=python-protobuf
version=3.12.4
revision=1
archs=noarch
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools python-six"
short_desc="Python2 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=c99e5aea75b6f2b29c8d8da5bdc5f5ed8d9a5b4f15115c8316a3f0a850f94656
post_install() {
sed -n 1,29p google/protobuf/__init__.py >LICENSE
vlicense LICENSE
}
python3-protobuf_package() {
archs=noarch
depends="python3-setuptools python3-six"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}