24 lines
671 B
Bash
24 lines
671 B
Bash
# Template file for 'yq'
|
|
pkgname=yq
|
|
version=2.6.0
|
|
revision=1
|
|
noarch=yes
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools"
|
|
makedepends="python3-yaml"
|
|
checkdepends="jq python3-xmltodict"
|
|
depends="jq python3-xmltodict python3-yaml"
|
|
short_desc="Command-line YAML processor written in Python that wraps around jq"
|
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
|
license="Apache-2.0"
|
|
homepage="https://github.com/kislyuk/yq"
|
|
distfiles="${PYPI_SITE}/y/yq/yq-${version}.tar.gz"
|
|
checksum=c64f763e8409ed55eb055793c26fc347b5a6666b303d49e9d2f8d7cea979df73
|
|
|
|
post_install() {
|
|
mv "${DESTDIR}/usr/bin/xq" "${DESTDIR}/usr/bin/yq-xq"
|
|
}
|
|
|
|
do_check() {
|
|
python3 test/test.py
|
|
}
|