c14f8c68f2
Closes #13700. Signed-off-by: Enno Boland <gottox@voidlinux.eu>
27 lines
812 B
Bash
27 lines
812 B
Bash
# Template file for 'wireguard'
|
|
pkgname=wireguard
|
|
version=0.0.20180420
|
|
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 <leah@vuxu.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://www.wireguard.com/"
|
|
distfiles="https://git.zx2c4.com/WireGuard/snapshot/WireGuard-${version}.tar.xz"
|
|
checksum=b58cd2acf9e8d3fe9044c06c0056bd74da1f5673a456f011d36eee3f6fb1da16
|
|
|
|
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
|
|
}
|