termux-packages/packages/shell2http/build.sh

26 lines
904 B
Bash
Raw Normal View History

2020-05-08 11:57:37 +02:00
TERMUX_PKG_HOMEPAGE=https://github.com/msoap/shell2http
TERMUX_PKG_DESCRIPTION="Executing shell commands via HTTP server"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="Krishna kanhaiya @kcubeterm"
2021-10-23 17:57:15 +02:00
TERMUX_PKG_VERSION=1.14.1
TERMUX_PKG_SRCURL=https://github.com/msoap/shell2http/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=bc09d026a3d947f4706f9c25fb07b70b01b355d0bca4f5af469ae2f79e0c5121
TERMUX_PKG_AUTO_UPDATE=true
2020-05-08 11:57:37 +02:00
termux_step_make() {
termux_setup_golang
2020-05-08 11:57:37 +02:00
cd "$TERMUX_PKG_SRCDIR"
2020-05-08 11:57:37 +02:00
export GOPATH="${TERMUX_PKG_BUILDDIR}"
mkdir -p "${GOPATH}/src/github.com/msoap/"
cp -a "${TERMUX_PKG_SRCDIR}" "${GOPATH}/src/github.com/msoap/shell2http"
cd "${GOPATH}/src/github.com/msoap/shell2http"
go get -d -v
2021-10-23 17:57:15 +02:00
go build -ldflags "-X 'main.version=$TERMUX_PKG_VERSION'"
2020-05-08 11:57:37 +02:00
}
termux_step_make_install() {
install -Dm700 -t "$TERMUX_PREFIX"/bin "$GOPATH"/src/github.com/msoap/shell2http/shell2http
2020-05-08 11:57:37 +02:00
}