25 lines
690 B
Bash
25 lines
690 B
Bash
# Template file for 'yq-go'
|
|
pkgname=yq-go
|
|
version=4.14.1
|
|
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"
|
|
distfiles="https://github.com/mikefarah/yq/archive/v${version}.tar.gz"
|
|
checksum=294300a8c182c3f8e1f537ad2feebb6d0651f61330f33504bdc502f48992bf84
|
|
|
|
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
|
|
}
|