mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-30 09:22:57 +02:00
python-protobuf: fix template
This commit is contained in:
parent
911cf4828d
commit
e8c988ca9d
2 changed files with 23 additions and 15 deletions
|
@ -1,25 +1,32 @@
|
||||||
# Template file for 'python-protobuf'
|
# Template file for 'python-protobuf'
|
||||||
pkgname=python-protobuf
|
pkgname=python-protobuf
|
||||||
version=3.3.0
|
version=3.3.0
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="protobuf-${version}"
|
wrksrc="protobuf-${version}"
|
||||||
build_style=python2-module
|
build_style=python-module
|
||||||
pycompile_module="protobuf"
|
pycompile_module="google/protobuf"
|
||||||
hostmakedepends="python-setuptools"
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
depends="python"
|
depends="python-setuptools python-six"
|
||||||
short_desc="Python bindings for Google Protocol Buffers"
|
short_desc="Python2 bindings for Google Protocol Buffers"
|
||||||
maintainer="Charles E. Lehner <cel@celehner.com>"
|
maintainer="Charles E. Lehner <cel@celehner.com>"
|
||||||
homepage="https://developers.google.com/protocol-buffers/"
|
homepage="https://developers.google.com/protocol-buffers/"
|
||||||
license="BSD"
|
license="3-clause-BSD"
|
||||||
distfiles="
|
distfiles="${PYPI_SITE}/p/protobuf/protobuf-${version}.tar.gz"
|
||||||
${PYPI_SITE}/p/protobuf/protobuf-${version}.tar.gz
|
checksum=1cbcee2c45773f57cb6de7ee0eceb97f92b9b69c0178305509b162c0160c1f04
|
||||||
https://raw.githubusercontent.com/google/protobuf/master/LICENSE"
|
|
||||||
checksum="1cbcee2c45773f57cb6de7ee0eceb97f92b9b69c0178305509b162c0160c1f04
|
|
||||||
af67c58de2e18677a0b8cb5fffbe2232aabb8eb2930e8cd684769cef3d74a262"
|
|
||||||
skip_extraction=LICENSE
|
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense $XBPS_SRCDISTDIR/$pkgname-$version/LICENSE
|
sed -n 1,29p google/protobuf/__init__.py >LICENSE
|
||||||
chmod -R o+r $DESTDIR/usr/lib
|
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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
1
srcpkgs/python3-protobuf
Symbolic link
1
srcpkgs/python3-protobuf
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
python-protobuf
|
Loading…
Add table
Reference in a new issue