diff options
Diffstat (limited to 'community/py3-protobuf/APKBUILD')
-rw-r--r-- | community/py3-protobuf/APKBUILD | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/community/py3-protobuf/APKBUILD b/community/py3-protobuf/APKBUILD index 3957a93613f..c6405e0d4ad 100644 --- a/community/py3-protobuf/APKBUILD +++ b/community/py3-protobuf/APKBUILD @@ -1,19 +1,22 @@ # Contributor: Corentin Henry <corentinhenry@gmail.com> # Maintainer: Patrycja Rosa <alpine@ptrcnull.me> pkgname=py3-protobuf -pkgver=3.20.1 -pkgrel=0 +pkgver=4.24.4 +_protobuf=${pkgver#*.} +pkgrel=1 pkgdesc="Google's data interchange format" -url="https://github.com/google/protobuf" +url="https://github.com/protocolbuffers/protobuf" arch="noarch" license="BSD-3-Clause" -depends="py3-six>=1.9 tzdata" -makedepends="protobuf py3-setuptools py3-wheel" -checkdepends="py3-pytest" +depends="tzdata" +makedepends="protobuf-dev py3-setuptools py3-wheel" +checkdepends="py3-pytest py3-numpy" # 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/v$pkgver/protobuf-python-$pkgver.tar.gz" -builddir="$srcdir"/protobuf-$pkgver/python +subpackages="$pkgname-pyc" +source="https://github.com/protocolbuffers/protobuf/releases/download/v$_protobuf/protobuf-$_protobuf.tar.gz" +builddir="$srcdir"/protobuf-$_protobuf/python +options="!check" # seem to not generate some test protos replaces="py-protobuf" # Backwards compatibility provides="py-protobuf=$pkgver-r$pkgrel" # Backwards compatibility @@ -27,12 +30,12 @@ check() { } package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" + python3 setup.py install --skip-build --root="$pkgdir" # correct permissions - chmod +r "$subpkgdir"/usr/lib/*/site-packages/*/* + chmod +r "$pkgdir"/usr/lib/*/site-packages/*/* } sha512sums=" -8fd0d49873540542232b3dd11991f2f53673898ccaf86375b3115e66f84db5a8e5ee3265af53645d11fc34454d2e13a12beb7160917bd9cdec886a0e8741710d protobuf-python-3.20.1.tar.gz +52b6ab5587d03cbd1f35cf3cdc388e1710fa50f3031559ac53cf754965407ded7602cdead56080444ab695588112cc3391a1d7fdd5e565d90d0af7ad08706315 protobuf-24.4.tar.gz " |