void-packages/srcpkgs/wireguard/template

28 lines
804 B
Bash
Raw Normal View History

2016-08-11 14:31:19 +02:00
# Template file for 'wireguard'
pkgname=wireguard
version=0.0.20170223
2016-08-11 14:31:19 +02:00
revision=1
2017-02-12 16:59:37 +01:00
wrksrc="WireGuard-${version}"
2016-08-11 14:31:19 +02:00
build_wrksrc="src/tools"
build_style=gnu-makefile
2017-02-12 16:59:37 +01:00
make_install_args="WITH_BASHCOMPLETION=yes WITH_WGQUICK=yes"
2016-08-11 14:31:19 +02:00
makedepends="libmnl-devel"
depends="dkms"
short_desc="Fast, modern, secure VPN tunnel"
2017-02-12 16:59:37 +01:00
maintainer="Leah Neukirchen <leah@vuxu.org>"
2016-08-11 14:31:19 +02:00
license="GPL-2"
homepage="https://www.wireguard.io/"
2017-02-12 16:59:37 +01:00
distfiles="https://git.zx2c4.com/WireGuard/snapshot/WireGuard-${version}.tar.xz"
checksum=6d2c8cd29c4f9fb404546a4749ec050739a26b4a49b5864f1dec531377c3c50d
2016-08-11 14:31:19 +02:00
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
2016-08-11 14:31:19 +02:00
}