vp-build/srcpkgs/python-protobuf/template

27 lines
820 B
Bash

# Template file for 'python-protobuf'
pkgname=python-protobuf
version=3.1.0.post1
revision=1
noarch=yes
wrksrc="protobuf-${version}"
build_style=python2-module
pycompile_module="protobuf"
hostmakedepends="python-setuptools"
depends="python"
short_desc="Python bindings for Google Protocol Buffers"
maintainer="Charles E. Lehner <cel@celehner.com>"
homepage="https://developers.google.com/protocol-buffers/"
license="BSD"
distfiles="
${PYPI_SITE}/p/protobuf/protobuf-${version}.tar.gz
https://raw.githubusercontent.com/google/protobuf/master/LICENSE"
checksum="
1a2e989ff8820ef2eaf56b07cd40ad764ec505a0f0b52b69f7fa9e0d5afbddb7
af67c58de2e18677a0b8cb5fffbe2232aabb8eb2930e8cd684769cef3d74a262"
skip_extraction=LICENSE
post_install() {
vlicense $XBPS_SRCDISTDIR/$pkgname-$version/LICENSE
chmod -R o+r $DESTDIR/usr/lib
}