void-packages/srcpkgs/yq/template

24 lines
740 B
Bash

# Template file for 'yq'
pkgname=yq
version=2.11.1
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
makedepends="python3-yaml"
depends="python3-setuptools python3-xmltodict python3-yaml python3-toml python3-argcomplete"
checkdepends="jq python3-xmltodict python3-toml python3-argcomplete"
short_desc="Command-line YAML processor written in Python that wraps around jq"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://github.com/kislyuk/yq"
distfiles="${PYPI_SITE}/y/yq/yq-${version}.tar.gz"
checksum=74f64e3784a34d8a18efd8addc83cf5ca3478a0a69517d70fd9158a3809f99e0
do_check() {
python3 test/test.py
}
post_install() {
mv "${DESTDIR}/usr/bin/xq" "${DESTDIR}/usr/bin/yq-xq"
}