python-protobuf: drop package

This commit is contained in:
Đoàn Trần Công Danh 2020-09-20 14:10:25 +07:00
parent f555f789a5
commit 0a898a059d
3 changed files with 7 additions and 17 deletions

View file

@ -1 +0,0 @@
python-protobuf

View file

@ -1,12 +1,12 @@
# Template file for 'python-protobuf'
pkgname=python-protobuf
# Template file for 'python3-protobuf'
pkgname=python3-protobuf
version=3.13.0
revision=2
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools python-wheel python3-wheel"
depends="python-setuptools python-six"
short_desc="Python2 bindings for Google Protocol Buffers"
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/"
@ -20,19 +20,10 @@ 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+=" python-devel python3-devel protobuf-devel"
makedepends+=" python3-devel protobuf-devel"
fi
post_install() {
sed -n 1,29p google/protobuf/__init__.py >LICENSE
vlicense LICENSE
}
python3-protobuf_package() {
depends="python3-setuptools python3-six"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}