34 lines
905 B
Bash
34 lines
905 B
Bash
# Template file for 'python-jmespath'
|
|
pkgname=python-jmespath
|
|
version=0.9.4
|
|
revision=2
|
|
archs=noarch
|
|
wrksrc="jmespath.py-${version}"
|
|
build_style=python-module
|
|
pycompile_module="jmespath"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python"
|
|
short_desc="JSON Query language for Python2"
|
|
maintainer="yopito <pierre.bourgin@free.fr>"
|
|
license="MIT"
|
|
homepage="http://jmespath.org"
|
|
distfiles="https://github.com/jmespath/jmespath.py/archive/${version}.tar.gz"
|
|
checksum=13a21155c44fbb20013c1f58ced8874d4dd3506592c94b0a73a210a2360a6246
|
|
alternatives="jmespath:jp.py:/usr/bin/jp.py2"
|
|
|
|
post_install() {
|
|
vlicense LICENSE.txt
|
|
}
|
|
|
|
python3-jmespath_package() {
|
|
archs=noarch
|
|
depends="python3"
|
|
pycompile_module="jmespath"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="jmespath:jp.py:/usr/bin/jp.py3"
|
|
pkg_install() {
|
|
vlicense LICENSE.txt
|
|
vmove usr/lib/python3*
|
|
vmove usr/bin/*3
|
|
}
|
|
}
|