void-packages/srcpkgs/yq-go/template
2020-09-25 20:34:56 +02:00

25 lines
688 B
Bash

# Template file for 'yq-go'
pkgname=yq-go
version=3.4.0
revision=1
wrksrc="yq-${version}"
build_style=go
go_import_path=github.com/mikefarah/yq/v3
short_desc="Lightweight and portable command-line YAML processor written in go"
maintainer="Frank Steinborn <steinex@nognu.de>"
license="MIT"
homepage="https://github.com/mikefarah/yq"
distfiles="https://github.com/mikefarah/yq/archive/${version}.tar.gz"
checksum=76b96cd2ba503eef396d8773d874b4fdc56fc3aff3c61b0808afadff2a6daae7
do_check() {
go test -v
}
post_install() {
# this came after yq 'the jq wrapper for yaml' so yq has the right tp
# /usr/bin/yq, rename it to yq-go
mv -v "${DESTDIR}"/usr/bin/{yq,yq-go}
vlicense LICENSE
}