26 lines
759 B
Bash
26 lines
759 B
Bash
# Template file for 'yq-go'
|
|
pkgname=yq-go
|
|
version=4.44.1
|
|
revision=1
|
|
build_style=go
|
|
go_import_path=github.com/mikefarah/yq/v4
|
|
short_desc="Command-line YAML, JSON, XML, CSV, TOML and properties processor"
|
|
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=e66da5ee0c081d7974bae6a59e4791ba354178ee32ea78ab1b95d4dd60b2813d
|
|
|
|
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
|
|
}
|