termux-packages/packages/brook/build.sh

27 lines
1003 B
Bash
Raw Normal View History

TERMUX_PKG_HOMEPAGE=https://github.com/txthinking/brook
TERMUX_PKG_DESCRIPTION="A cross-platform strong encryption and not detectable proxy. Zero-Configuration."
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="Krishna kanhaiya @kcubeterm"
2020-12-07 21:18:19 +01:00
TERMUX_PKG_VERSION="20210101"
TERMUX_PKG_SRCURL=https://github.com/txthinking/brook/archive/v${TERMUX_PKG_VERSION}.tar.gz
2020-12-07 21:18:19 +01:00
TERMUX_PKG_SHA256=2848b6ef06867268ba4a6495cbf700d80145f023ddafb3e92943aed1f88eeb5a
termux_step_make() {
termux_setup_golang
cd "$TERMUX_PKG_SRCDIR"
export GOPATH=$TERMUX_PKG_BUILDDIR
mkdir -p "$GOPATH"/src/github.com/txthinking
mkdir -p "$TERMUX_PREFIX"/share/doc/brook
cp -a "$TERMUX_PKG_SRCDIR" "$GOPATH"/src/github.com/txthinking/brook
cd "$GOPATH"/src/github.com/txthinking/brook/cli/brook
go get -d -v
go build -o brook
}
termux_step_make_install() {
install -Dm700 -t "$TERMUX_PREFIX"/bin "$GOPATH"/src/github.com/txthinking/brook/cli/brook/brook
cp -r "$TERMUX_PKG_SRCDIR"/docs/* "$TERMUX_PREFIX"/share/doc/brook
}