void-packages/srcpkgs/yq-go/template

26 lines
761 B
Bash

# Template file for 'yq-go'
pkgname=yq-go
version=4.30.5
revision=1
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/refs/tags/v${version}.tar.gz"
checksum=54706926e44ca8f28c74c0165c4746f372daafd4db885b709fdaf5e8f2e4502c
do_check() {
go test -v
}
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
}