void-packages/srcpkgs/yq-go/template
2019-11-14 19:09:49 +01:00

26 lines
704 B
Bash

# Template file for 'yq-go'
pkgname=yq-go
version=2.4.1
revision=1
wrksrc="yq-${version}"
build_style=go
go_import_path=github.com/mikefarah/yq
hostmakedepends="git"
short_desc="Lightweight and portable command-line YAML processor written in go"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/mikefarah/yq"
distfiles="https://github.com/mikefarah/yq/archive/${version}.tar.gz"
checksum=229afb4d8b5881e7f0c248ea51724fd91335d91b6d3922aaadbf5d6cfadd7648
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
}