mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
# Contributor: Corentin Henry <corentinhenry@gmail.com>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=py3-protobuf
|
|
pkgver=4.21.12
|
|
pkgrel=0
|
|
pkgdesc="Google's data interchange format"
|
|
url="https://github.com/protocolbuffers/protobuf"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="python3 tzdata"
|
|
makedepends="protobuf-dev py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest"
|
|
# NOTE: Always use releases of protobuf, not pypi or auto-generated GitHub
|
|
# tarballs as they do not contain the necessary components to run tests.
|
|
source="https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protobuf-python-$pkgver.zip"
|
|
builddir="$srcdir"/protobuf-$pkgver/python
|
|
|
|
replaces="py-protobuf" # Backwards compatibility
|
|
provides="py-protobuf=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
|
|
# correct permissions
|
|
chmod +r "$pkgdir"/usr/lib/*/site-packages/*/*
|
|
}
|
|
|
|
sha512sums="
|
|
7d2ecdbcbbcbb3f355e8a87106da53a1af38ac97b938618623682cc6539ddf4115d4c53c0b521f27fe378bc64bff562bd9c288d42f2b87c87324ce2a32243734 protobuf-python-4.21.12.zip
|
|
"
|