termux-packages/packages/wireguard-tools/build.sh
Jason A. Donenfeld 5a1674df07 wireguard-tools: update to 1.0.20200206
This version drops the libmnl dependency.
2020-02-07 14:12:59 +01:00

16 lines
834 B
Bash

TERMUX_PKG_HOMEPAGE=https://www.wireguard.com
TERMUX_PKG_DESCRIPTION="Tools for the WireGuard secure network tunnel"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=1.0.20200206
TERMUX_PKG_SRCURL=https://git.zx2c4.com/wireguard-tools/snapshot/wireguard-tools-$TERMUX_PKG_VERSION.tar.xz
TERMUX_PKG_SHA256=f5207248c6a3c3e3bfc9ab30b91c1897b00802ed861e1f9faaed873366078c64
TERMUX_PKG_DEPENDS="tsu"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_MAKE_ARGS=" -C src WITH_BASHCOMPLETION=yes WITH_WGQUICK=no WITH_SYSTEMDUNITS=no"
termux_step_post_make_install() {
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
}