2020-11-18 00:38:03 +01:00
|
|
|
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"
|
2022-02-21 13:10:11 +01:00
|
|
|
TERMUX_PKG_VERSION=20220401
|
2020-11-18 00:38:03 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/txthinking/brook/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
2022-02-21 13:10:11 +01:00
|
|
|
TERMUX_PKG_SHA256=cd3c467d23f4677c51e6764e0a3203cf39ac6c1081203bfd9f5c79680317be22
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2020-11-18 00:38:03 +01:00
|
|
|
|
|
|
|
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
|
2021-07-10 16:00:18 +02:00
|
|
|
go get -d -v
|
2020-11-18 00:38:03 +01:00
|
|
|
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
|
|
|
|
}
|