# Maintainer: Corentin Henry # Contributor: Corentin Henry pkgname=py3-protobuf pkgver=3.11.0 pkgrel=0 pkgdesc="Google's data interchange format." url="https://github.com/google/protobuf" arch="noarch" license="BSD-3-Clause" depends="py3-six>=1.9" makedepends="protobuf py3-setuptools" # NOTE: Always use releases of protobuf, not pypi or auto-generated GitHub # tarballs as they do not contain the necessary componenets to run tests. source="https://github.com/protocolbuffers/protobuf/releases/download/v$pkgver/protobuf-python-$pkgver.tar.gz" builddir="$srcdir"/protobuf-$pkgver/python replaces="py-protobuf" # Backwards compatibility provides="py-protobuf=$pkgver-r$pkgrel" # Backwards compatibility build() { python3 setup.py build } check() { python3 setup.py test } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" # correct permissions chmod +r "$subpkgdir"/usr/lib/*/site-packages/*/* } sha512sums="c04bbd30cf067e90de8e7bfa4a235011a97f499062c315c8d9feb74c0d9a5c826cc0a451281d8e2427935c6ed32fd31f2f608e0cd05ee47d095e0012f21f2bfe protobuf-python-3.11.0.tar.gz"