2018-07-15 17:11:40 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.wireguard.com
|
|
|
|
TERMUX_PKG_DESCRIPTION="Tools for the WireGuard secure network tunnel"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2019-09-15 21:47:25 +02:00
|
|
|
TERMUX_PKG_VERSION=0.0.20190913
|
2018-07-15 17:11:40 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://git.zx2c4.com/WireGuard/snapshot/WireGuard-$TERMUX_PKG_VERSION.tar.xz
|
2019-09-15 21:47:25 +02:00
|
|
|
TERMUX_PKG_SHA256=997327185d2d1b597dc118f737c0c165e2a2c21453387ea02659f1159d148518
|
2018-07-15 17:11:40 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libmnl, tsu"
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2018-07-15 17:11:40 +02:00
|
|
|
TERMUX_PKG_EXTRA_MAKE_ARGS=" -C src/tools WITH_BASHCOMPLETION=yes WITH_WGQUICK=no WITH_SYSTEMDUNITS=no"
|
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_post_make_install() {
|
2018-07-15 17:11:40 +02:00
|
|
|
cd src/tools/wg-quick
|
2019-03-20 01:15:11 +01:00
|
|
|
$CC $CFLAGS $LDFLAGS -DWG_CONFIG_SEARCH_PATHS="\"$TERMUX_ANDROID_HOME/.wireguard $TERMUX_PREFIX/etc/wireguard /data/misc/wireguard /data/data/com.wireguard.android/files\"" -o wg-quick android.c
|
2018-07-15 17:11:40 +02:00
|
|
|
install -m 0755 wg-quick $TERMUX_PREFIX/bin
|
|
|
|
}
|