termux-packages/packages/gotty/build.sh

28 lines
811 B
Bash
Raw Normal View History

TERMUX_PKG_HOMEPAGE=https://github.com/sorenisanerd/gotty
2019-06-16 13:54:22 +02:00
TERMUX_PKG_DESCRIPTION="Share your terminal as a web application"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
2021-06-08 17:46:52 +02:00
TERMUX_PKG_VERSION=1.3.0
2021-05-29 14:59:43 +02:00
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/sorenisanerd/gotty/archive/v$TERMUX_PKG_VERSION.tar.gz
2021-06-08 17:46:52 +02:00
TERMUX_PKG_SHA256=09cc4fe278fa866df895527047ce83f009de97c01bab729651adac9db306f273
2019-06-16 13:54:22 +02:00
termux_step_make() {
termux_setup_golang
export GOPATH=$TERMUX_PKG_BUILDDIR
mkdir -p "$GOPATH"/src/github.com/yudai
ln -sf "$TERMUX_PKG_SRCDIR" "$GOPATH"/src/github.com/yudai/gotty
cd "$GOPATH"/src/github.com/yudai/gotty
go mod init || go mod download
#go mod tidy
2019-06-16 13:54:22 +02:00
go build
}
termux_step_make_install() {
install -Dm700 \
"$GOPATH"/src/github.com/yudai/gotty/gotty \
"$TERMUX_PREFIX"/bin/
}