# Template file for 'wireguard' pkgname=wireguard version=0.0.20180118 revision=1 wrksrc="WireGuard-${version}" build_wrksrc="src/tools" build_style=gnu-makefile make_install_args="WITH_BASHCOMPLETION=yes WITH_WGQUICK=yes" makedepends="libmnl-devel" depends="dkms" short_desc="Fast, modern, secure VPN tunnel" maintainer="Leah Neukirchen " license="GPL-2" homepage="https://www.wireguard.com/" distfiles="https://git.zx2c4.com/WireGuard/snapshot/WireGuard-${version}.tar.xz" checksum=463f3b402deb66b7ceac8df2d50944f32683933356455d6c1c7453926db3a8a3 triggers="dkms" dkms_modules="wireguard ${version}" post_extract() { sed -i 's/^CFLAGS /override &/' ${build_wrksrc}/Makefile } post_install() { make -C .. DESTDIR="${DESTDIR}" \ DKMSDIR="/usr/src/wireguard-${version}/" dkms-install }