# Template file for 'yq'
pkgname=yq
version=3.0.1
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools_scm"
makedepends="python3-yaml"
depends="${makedepends} python3-xmltodict python3-toml python3-argcomplete jq"
checkdepends="${depends}"
short_desc="Command-line YAML processor written in Python that wraps around jq"
maintainer="Ishaan Bhimwal <ishaanbhimwal@protonmail.com>"
license="Apache-2.0"
homepage="https://github.com/kislyuk/yq"
distfiles="${PYPI_SITE}/y/yq/yq-${version}.tar.gz"
checksum=a5e61078facd7ee4222f4346b5b50c4e9cea5e9d3330f074b5ea2c203bf639b1

do_check() {
	python3 test/test.py
}

post_install() {
	mv "${DESTDIR}/usr/bin/xq" "${DESTDIR}/usr/bin/yq-xq"
}
