testing/py3-jmespath: modernize

This commit is contained in:
prspkt 2019-07-01 16:57:52 +03:00
parent 3cd0e54f38
commit 6c4be714cd
No known key found for this signature in database
GPG Key ID: 24BA3D41BDA6E870

View File

@ -1,29 +1,27 @@
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Valery Kartel <valery.kartel@gmail.com>
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"
}