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"
|
|
|
|
TERMUX_PKG_VERSION=1.13
|
2021-05-16 11:16:50 +02:00
|
|
|
TERMUX_PKG_REVISION=2
|
2020-05-08 11:57:37 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/msoap/shell2http/archive/${TERMUX_PKG_VERSION}.tar.gz
|
|
|
|
TERMUX_PKG_SHA256=6094762a3e54efddcbc361d80ef281624d2647f17f6b0c787cab713626d861e3
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2020-05-08 11:57:37 +02:00
|
|
|
|
|
|
|
termux_step_make() {
|
2020-05-09 13:09:43 +02:00
|
|
|
termux_setup_golang
|
2020-05-08 11:57:37 +02:00
|
|
|
|
2020-05-09 13:09:43 +02:00
|
|
|
cd "$TERMUX_PKG_SRCDIR"
|
2020-05-08 11:57:37 +02:00
|
|
|
|
2020-05-09 13:09:43 +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"
|
2021-05-16 11:16:50 +02:00
|
|
|
go mod init
|
2021-07-10 16:00:18 +02:00
|
|
|
go get -d -v
|
2020-05-09 13:09:43 +02:00
|
|
|
go build
|
2020-05-08 11:57:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
2020-05-09 13:09:43 +02:00
|
|
|
install -Dm700 -t "$TERMUX_PREFIX"/bin "$GOPATH"/src/github.com/msoap/shell2http/shell2http
|
2020-05-08 11:57:37 +02:00
|
|
|
}
|