24 lines
683 B
Bash
24 lines
683 B
Bash
# Template file for 'yq'
|
|
pkgname=yq
|
|
version=2.12.2
|
|
revision=2
|
|
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"
|
|
}
|