void-packages/srcpkgs/yq/template
Arda Demir 42988a6d02 yq: update to 2.12.2.
and cleanup dependencies.
2021-08-18 23:45:20 -03:00

23 lines
683 B
Bash

# Template file for 'yq'
pkgname=yq
version=2.12.2
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
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="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://github.com/kislyuk/yq"
distfiles="${PYPI_SITE}/y/yq/yq-${version}.tar.gz"
checksum=2f156d0724b61487ac8752ed4eaa702a5737b804d5afa46fa55866951cd106d2
do_check() {
python3 test/test.py
}
post_install() {
mv "${DESTDIR}/usr/bin/xq" "${DESTDIR}/usr/bin/yq-xq"
}