summaryrefslogtreecommitdiff
path: root/user/wireguard-tools/APKBUILD
blob: 7e283e759954bf78c14f04856216fb48c575f081 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Contributor: Mira Ressel <aranea@aixah.de>
# Maintainer: Laurent Bercot <ska-adelie@skarnet.org>
pkgname=wireguard-tools
pkgver=1.0.20200513
pkgrel=0
pkgdesc="Userland tools for the WireGuard VPN"
url="https://www.wireguard.com/"
arch="all"
options="!check" # no test suite
license="GPL-2.0-only"
depends="bash iproute2"
makedepends="libmnl-dev"
subpackages="$pkgname-bash-completion:bashcomp:noarch $pkgname-doc"
source="https://git.zx2c4.com/$pkgname/snapshot/$pkgname-$pkgver.tar.xz"

build() {
	make RUNSTATEDIR=/run -C src
}

package() {
	make WITH_BASHCOMPLETION=yes WITH_WGQUICK=yes DESTDIR="$pkgdir" -C src install
}

bashcomp() {
	depends="$pkgname"
	pkgdesc="$pkgdesc (Bash completion)"

	mkdir -p "$subpkgdir/usr/share"
	mv "$pkgdir/usr/share/bash-completion" "$subpkgdir/usr/share/"
}

sha512sums="4d27b262350b6b47843a323c2e7ab8d2bdd48065c265778abdec85b3f6fc92aa9af77d76e368df9cc8e435eae1c0ce50fed52e1d78db54358c1884d34be08d2c  wireguard-tools-1.0.20200513.tar.xz"