void-packages/srcpkgs/wireguard/template
2017-04-10 13:07:36 +02:00

27 lines
804 B
Bash

# Template file for 'wireguard'
pkgname=wireguard
version=0.0.20170409
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"
homepage="https://www.wireguard.io/"
distfiles="https://git.zx2c4.com/WireGuard/snapshot/WireGuard-${version}.tar.xz"
checksum=31473b4d14178f82d6ff46df019d57982c210c03d1a985d54db35bdd76efbb18
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
}