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"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2020-08-28 17:25:25 +02:00
|
|
|
TERMUX_PKG_VERSION=1.0.20200827
|
2020-02-07 13:52:48 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://git.zx2c4.com/wireguard-tools/snapshot/wireguard-tools-$TERMUX_PKG_VERSION.tar.xz
|
2020-08-28 17:25:25 +02:00
|
|
|
TERMUX_PKG_SHA256=51bc85e33a5b3cf353786ae64b0f1216d7a871447f058b6137f793eb0f53b7fd
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2020-01-12 18:40:11 +01:00
|
|
|
TERMUX_PKG_EXTRA_MAKE_ARGS=" -C src WITH_BASHCOMPLETION=yes WITH_WGQUICK=no WITH_SYSTEMDUNITS=no"
|
2018-07-15 17:11:40 +02:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_post_make_install() {
|
2020-05-15 21:52:03 +02:00
|
|
|
cd src/wg-quick
|
|
|
|
$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
|
|
|
|
install -Dm0700 wg-quick $TERMUX_PREFIX/bin/wg-quick
|
2018-07-15 17:11:40 +02:00
|
|
|
}
|