mirror of
https://github.com/termux/termux-packages.git
synced 2025-03-04 09:28:54 +00:00
24 lines
663 B
Bash
24 lines
663 B
Bash
TERMUX_PKG_HOMEPAGE="https://github.com/danielgtaylor/restish"
|
|
TERMUX_PKG_DESCRIPTION="A CLI for interacting with REST-ish HTTP APIs"
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
TERMUX_PKG_LICENSE_FILE="LICENSE.md"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="0.20.0"
|
|
TERMUX_PKG_SRCURL="https://github.com/danielgtaylor/restish/archive/v$TERMUX_PKG_VERSION.tar.gz"
|
|
TERMUX_PKG_SHA256=0aebd5eaf4b34870e40c8b94a0cc84ef65c32fde32eddae48e9529c73a31176d
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
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 -Dm755 -t "${TERMUX_PREFIX}/bin" restish
|
|
}
|