new package: gojq (#15135)

This commit is contained in:
valpogus 2023-02-14 12:26:57 +01:00 committed by GitHub
parent 924310cc4e
commit 0df483d6b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 0 deletions

19
packages/gojq/build.sh Executable file
View File

@ -0,0 +1,19 @@
TERMUX_PKG_HOMEPAGE=https://github.com/itchyny/gojq
TERMUX_PKG_DESCRIPTION="Pure Go implementation of jq"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="0.12.11"
TERMUX_PKG_SRCURL=https://github.com/itchyny/gojq/archive/refs/tags/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=8fa747f787ba81a9c6979d3323a94897a64e7561263a82b795adcb21f7f40637
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_AUTO_UPDATE=true
termux_step_make() {
termux_setup_golang
go mod tidy
go build -o gojq ./cmd/gojq
}
termux_step_make_install() {
install -Dm700 -t "$TERMUX_PREFIX/bin" gojq
}