void-packages/srcpkgs/yq-go/template
2022-02-20 13:04:12 +01:00

27 lines
774 B
Bash

# Template file for 'yq-go'
pkgname=yq-go
version=4.20.2
revision=1
wrksrc="yq-${version}"
build_style=go
go_import_path=github.com/mikefarah/yq/v4
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"
changelog="https://raw.githubusercontent.com/mikefarah/yq/master/release_notes.txt"
distfiles="https://github.com/mikefarah/yq/archive/v${version}.tar.gz"
checksum=031c63dd98e564b9a74b842ffe8ae929085f1486f59a27d4feb7e118f40c8a1e
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
}