blob: 5b41e185ca4d07e61a2273532369ab017dedfc05 (
plain) (
tree)
|
|
# Contributor: Luis Ressel <aranea@aixah.de>
# Maintainer: Luis Ressel <aranea@aixah.de>
pkgname=wireguard-tools
pkgver=1.0.20200121
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="cd22467916c59ab53440e072fee6d0b01f2f9ee06fc3b71de4e74bc3aab05caf25519e5f723d9d160c491f917b7f064ee6b491c74edb52d7d2c29a08d86e41c2 wireguard-tools-1.0.20200121.tar.xz"
|