# Template file for 'yq-go'
pkgname=yq-go
version=4.52.2
revision=1
build_style=go
go_import_path=github.com/mikefarah/yq/v4
short_desc="Command-line YAML, JSON, XML, CSV, TOML and properties processor"
maintainer="Bnyro <bnyro@tutanota.com>"
license="MIT"
homepage="https://mikefarah.gitbook.io/yq"
changelog="https://raw.githubusercontent.com/mikefarah/yq/master/release_notes.txt"
distfiles="https://github.com/mikefarah/yq/archive/refs/tags/v${version}.tar.gz"
checksum=598ad3719f6b8a199f374baf7a32e9ff527300e56816f4652cd3640c230bf79b

post_install() {
	# this came after yq 'the jq wrapper for yaml' so yq has the right to
	# /usr/bin/yq, rename it to yq-go
	mv -v "${DESTDIR}"/usr/bin/{yq,yq-go}

	vlicense LICENSE
}
