void-packages/srcpkgs/yq-go/template
2020-06-20 22:40:26 +02:00

26 lines
710 B
Bash

# Template file for 'yq-go'
pkgname=yq-go
version=3.3.2
revision=1
wrksrc="yq-${version}"
build_style=go
go_import_path=github.com/mikefarah/yq/v3
hostmakedepends="git"
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=28b34199aadafe0eef1e7becc6953675ad516383b31637a42080940e1c9318fb
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
}