new package: yq

This commit is contained in:
Tee KOBAYASHI 2022-03-14 09:56:27 +09:00 committed by xtkoba
parent 6d91baed87
commit dcf3a11758

20
packages/yq/build.sh Normal file
View File

@ -0,0 +1,20 @@
TERMUX_PKG_HOMEPAGE=https://mikefarah.gitbook.io/yq/
TERMUX_PKG_DESCRIPTION="A lightweight and portable command-line YAML, JSON and XML processor"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=4.22.1
TERMUX_PKG_SRCURL=https://github.com/mikefarah/yq/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=79b4f01774849323db7cc649a270ac4aaccacea2e97260b25f51a634670ecb6e
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make() {
termux_setup_golang
go mod init || :
go mod tidy
go build
}
termux_step_make_install() {
install -Dm700 -t $TERMUX_PREFIX/bin yq
}