From 6c4be714cd87fce186735179a11065e98af74ac4 Mon Sep 17 00:00:00 2001 From: prspkt Date: Mon, 1 Jul 2019 16:57:52 +0300 Subject: [PATCH] testing/py3-jmespath: modernize --- testing/py3-jmespath/APKBUILD | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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" }