void-packages/srcpkgs/yq/template
2018-11-06 19:11:39 -02:00

25 lines
726 B
Bash

# Template file for 'yq'
pkgname=yq
version=2.7.1
revision=1
noarch=yes
build_style=python3-module
hostmakedepends="python3-setuptools"
makedepends="python3-yaml"
depends="python3-setuptools"
depends="jq python3-xmltodict python3-yaml python3-toml"
checkdepends="jq python3-xmltodict python3-toml"
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=001b746228f15da5109a3677eccf3f6eeeca88fd5b3ca408d1a8a1fee0e220b0
do_check() {
python3 test/test.py
}
post_install() {
mv "${DESTDIR}/usr/bin/xq" "${DESTDIR}/usr/bin/yq-xq"
}