void-packages/srcpkgs/yq/template
2018-08-04 23:23:41 -03:00

24 lines
697 B
Bash

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