40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# Template file for 'wireguard'
|
|
pkgname=wireguard
|
|
version=0.0.20181007
|
|
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 wireguard-tools"
|
|
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=d26e0d1216594871b5947e76d64c2fa50e9b34b68cdcfa3fdad588cbb314af89
|
|
|
|
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
|
|
}
|
|
|
|
wireguard-tools_package() {
|
|
short_desc+=" - tools"
|
|
depends="openresolv"
|
|
pkg_install() {
|
|
vmove usr/bin/wg
|
|
vmove usr/bin/wg-quick
|
|
vmove usr/share/bash-completion/completions/wg
|
|
vmove usr/share/bash-completion/completions/wg-quick
|
|
vmove usr/share/man/man8/wg-quick.8
|
|
vmove usr/share/man/man8/wg.8
|
|
}
|
|
}
|