2016-11-18 17:25:38 +01:00
|
|
|
# Template file for 'python-protobuf'
|
|
|
|
pkgname=python-protobuf
|
2017-05-06 19:23:46 +02:00
|
|
|
version=3.3.0
|
2017-05-07 16:57:30 +02:00
|
|
|
revision=2
|
2016-11-18 17:25:38 +01:00
|
|
|
noarch=yes
|
|
|
|
wrksrc="protobuf-${version}"
|
2017-05-07 16:57:30 +02:00
|
|
|
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"
|
2016-11-18 17:25:38 +01:00
|
|
|
maintainer="Charles E. Lehner <cel@celehner.com>"
|
|
|
|
homepage="https://developers.google.com/protocol-buffers/"
|
2017-05-07 16:57:30 +02:00
|
|
|
license="3-clause-BSD"
|
|
|
|
distfiles="${PYPI_SITE}/p/protobuf/protobuf-${version}.tar.gz"
|
|
|
|
checksum=1cbcee2c45773f57cb6de7ee0eceb97f92b9b69c0178305509b162c0160c1f04
|
2016-11-18 17:25:38 +01:00
|
|
|
|
|
|
|
post_install() {
|
2017-05-07 16:57:30 +02:00
|
|
|
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
|
|
|
|
}
|
2016-11-18 17:25:38 +01:00
|
|
|
}
|