diff --git a/testing/py3-jmespath/APKBUILD b/testing/py3-jmespath/APKBUILD index 588f77ab896..e9145917502 100644 --- a/testing/py3-jmespath/APKBUILD +++ b/testing/py3-jmespath/APKBUILD @@ -1,29 +1,27 @@ # Maintainer: Valery Kartel # Contributor: Valery Kartel pkgname=py3-jmespath +_pkgname=jmespath pkgver=0.9.3 pkgrel=1 -_pkgreal=${pkgname#py3-} pkgdesc="JMESPath is a query language for JSON" -url="http://jmespath.org" +url="https://jmespath.org" arch="noarch" license="MIT" options="!check" depends="python3" makedepends="py3-setuptools" -source="https://files.pythonhosted.org/packages/source/${_pkgreal:0:1}/$_pkgreal/$_pkgreal-$pkgver.tar.gz" -builddir="$srcdir/$_pkgreal-$pkgver" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" replaces=py-jmespath # Backwards compatibility provides=py-jmespath=$pkgver-r$pkgrel # Backwards compatibility build() { - cd "$builddir" - python3 setup.py build || return 1 + python3 setup.py build } package() { - cd "$builddir" python3 setup.py install --prefix=/usr --root="$pkgdir" }