mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-06 10:53:21 +00:00
for the same reason as commit 40ac9ec3b43b106ec4b45b830862dfb17ff96a3e. Unable to build all at once in CI due to limited disk space. Builds are going to be triggered manually, divided into several pieces. %ci:no-build
27 lines
928 B
Bash
27 lines
928 B
Bash
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.14.2"
|
|
TERMUX_PKG_REVISION=1
|
|
TERMUX_PKG_SRCURL=https://github.com/msoap/shell2http/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=720acccbd099fba971bcd961e9f5aa0ded2576ed93c55cd91fcbb2e540a6c1eb
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
|
|
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 -ldflags "-X 'main.version=$TERMUX_PKG_VERSION'"
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
install -Dm700 -t "$TERMUX_PREFIX"/bin "$GOPATH"/src/github.com/msoap/shell2http/shell2http
|
|
}
|