new package: shell2http (#5264)
This commit is contained in:
parent
37e1743f59
commit
8f327ec759
|
@ -0,0 +1,26 @@
|
|||
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
|
||||
TERMUX_PKG_SRCURL=https://github.com/msoap/shell2http/archive/${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=6094762a3e54efddcbc361d80ef281624d2647f17f6b0c787cab713626d861e3
|
||||
|
||||
termux_step_make() {
|
||||
termux_setup_golang
|
||||
|
||||
cd "$TERMUX_PKG_SRCDIR"
|
||||
|
||||
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
|
||||
go build
|
||||
}
|
||||
|
||||
termux_step_make_install() {
|
||||
install -Dm700 \
|
||||
"$GOPATH"/src/github.com/msoap/shell2http/shell2http \
|
||||
"$TERMUX_PREFIX"/bin/
|
||||
}
|
Loading…
Reference in New Issue