aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-rw-r--r--testing/py-protobuf/APKBUILD11
1 files changed, 4 insertions, 7 deletions
diff --git a/testing/py-protobuf/APKBUILD b/testing/py-protobuf/APKBUILD
index 26dab0918b..e465f4342c 100644
--- a/testing/py-protobuf/APKBUILD
+++ b/testing/py-protobuf/APKBUILD
@@ -9,13 +9,12 @@ url="https://github.com/google/protobuf"
arch="noarch"
license="BSD-3-Clause"
depends="py-six>=1.9"
-makedepends="python2-dev python3-dev py-setuptools py-google-apputils"
+makedepends="protobuf py-setuptools py3-setuptools py-google-apputils"
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
-source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
-builddir="$srcdir"/protobuf-$pkgver
+source="https://github.com/protocolbuffers/protobuf/releases/download/v$pkgver/protobuf-python-$pkgver.tar.gz"
+builddir="$srcdir"/protobuf-$pkgver/python
build() {
- cd "$builddir"
python2 setup.py build
python3 setup.py build
}
@@ -25,8 +24,6 @@ package() {
}
check() {
- cd "$builddir"
- python2 setup.py test
python3 setup.py test
}
@@ -53,4 +50,4 @@ _py() {
chmod +r "$subpkgdir"/usr/lib/*/site-packages/*/*
}
-sha512sums="f8f2115b1ab3d180f15b64119dd60cbc87b304133535bf32b5f6c290408158c4fc480166359dcd65e586a4fbce50b1f93830bd8938808c1330ffb6572365bdbe py-protobuf-3.8.0.tar.gz"
+sha512sums="7ef725ad70d91154c69ffabfa3d292abdd477cf5be97ebcee8404f1b4354a5620108169e2e2c48fdacd09ea5e73957f30c1bcfd98d01c84916a6f7b416a4b9a5 protobuf-python-3.8.0.tar.gz"