1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/testing/py3-protobuf/APKBUILD

35 lines
1.1 KiB
Text

# Maintainer: Corentin Henry <corentinhenry@gmail.com>
# Contributor: Corentin Henry <corentinhenry@gmail.com>
pkgname=py3-protobuf
pkgver=3.11.4
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="0118298be68dca4c3bae1593d1d69ae51121b3e2ef75c447623ec7db6fc2ad449f17f8c57d864cf26547e410dc7a6ee97e24a426ac6e6dc879470baa0d74b04e protobuf-python-3.11.4.tar.gz"