26 lines
709 B
Bash
26 lines
709 B
Bash
# Template file for 'yq-go'
|
|
pkgname=yq-go
|
|
version=2.0.0
|
|
revision=1
|
|
wrksrc="yq-${version}"
|
|
build_style=go
|
|
go_import_path=github.com/mikefarah/yq
|
|
hostmakedepends="git"
|
|
short_desc="A lightweight and portable command-line YAML processor written in go"
|
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://github.com/mikefarah/yq"
|
|
distfiles="https://github.com/mikefarah/yq/archive/${version}.tar.gz"
|
|
checksum=4a433a8881c6edc43be871f01e493b179e85404c26c91e4980a0010cae407815
|
|
|
|
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
|
|
}
|