mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2025-12-25 21:20:41 +00:00
addpkg(main/snowflake): Pluggable Transport using WebRTC, inspired by Flashproxy
This commit is contained in:
26
packages/snowflake/build.sh
Normal file
26
packages/snowflake/build.sh
Normal file
@@ -0,0 +1,26 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://snowflake.torproject.org/
|
||||
TERMUX_PKG_DESCRIPTION="Pluggable Transport using WebRTC, inspired by Flashproxy"
|
||||
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION="2.9.2"
|
||||
TERMUX_PKG_SRCURL=https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/archive/v${TERMUX_PKG_VERSION}/snowflake-v${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=b539a069eb3996d20a63eef9af59b43adb740ea121c954edf13b2bb6102b7112
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
TERMUX_PKG_AUTO_UPDATE=true
|
||||
|
||||
termux_step_pre_configure() {
|
||||
termux_setup_golang
|
||||
|
||||
go mod init || :
|
||||
go mod tidy
|
||||
}
|
||||
|
||||
termux_step_make() {
|
||||
go build -o snowflake-client $TERMUX_PKG_SRCDIR/client/
|
||||
go build -o snowflake-proxy $TERMUX_PKG_SRCDIR/proxy/
|
||||
}
|
||||
|
||||
termux_step_make_install() {
|
||||
install -Dm700 -t $TERMUX_PREFIX/bin snowflake-client
|
||||
install -Dm700 -t $TERMUX_PREFIX/bin snowflake-proxy
|
||||
}
|
||||
3
packages/snowflake/snowflake-client.subpackage.sh
Normal file
3
packages/snowflake/snowflake-client.subpackage.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
TERMUX_SUBPKG_DESCRIPTION="Pluggable Transport using WebRTC, inspired by Flashproxy (Client)"
|
||||
TERMUX_SUBPKG_INCLUDE="bin/snowflake-client"
|
||||
TERMUX_SUBPKG_DEPEND_ON_PARENT=false
|
||||
3
packages/snowflake/snowflake-proxy.subpackage.sh
Normal file
3
packages/snowflake/snowflake-proxy.subpackage.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
TERMUX_SUBPKG_DESCRIPTION="Pluggable Transport using WebRTC, inspired by Flashproxy (Proxy)"
|
||||
TERMUX_SUBPKG_INCLUDE="bin/snowflake-proxy"
|
||||
TERMUX_SUBPKG_DEPEND_ON_PARENT=false
|
||||
Reference in New Issue
Block a user