mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-12 04:41:03 +00:00
29 lines
851 B
Bash
29 lines
851 B
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/sorenisanerd/gotty
|
|
TERMUX_PKG_DESCRIPTION="Share your terminal as a web application"
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="1.6.0"
|
|
TERMUX_PKG_REVISION=1
|
|
TERMUX_PKG_SRCURL=https://github.com/sorenisanerd/gotty/archive/refs/tags/v$TERMUX_PKG_VERSION.tar.gz
|
|
TERMUX_PKG_SHA256=95425b43d071d5a2019ccf018ba4a124d1f1ddc56e90d723caf75995641175c1
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
|
|
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
|
|
go build
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
install -Dm700 \
|
|
"$GOPATH"/src/github.com/yudai/gotty/gotty \
|
|
"$TERMUX_PREFIX"/bin/
|
|
}
|