25 lines
777 B
Bash
25 lines
777 B
Bash
# Template file for 'yq'
|
|
pkgname=yq
|
|
version=3.1.0
|
|
revision=1
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools_scm"
|
|
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="Ishaan Bhimwal <ishaanbhimwal@protonmail.com>"
|
|
license="Apache-2.0"
|
|
homepage="https://github.com/kislyuk/yq"
|
|
changelog="https://raw.githubusercontent.com/kislyuk/yq/develop/Changes.rst"
|
|
distfiles="${PYPI_SITE}/y/yq/yq-${version}.tar.gz"
|
|
checksum=30a84aa22486c749ba269256bd586c0bcd370b7e2a71e76c3924ead4867e74f2
|
|
|
|
do_check() {
|
|
python3 test/test.py
|
|
}
|
|
|
|
post_install() {
|
|
mv "${DESTDIR}/usr/bin/xq" "${DESTDIR}/usr/bin/yq-xq"
|
|
}
|