summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3c66db525c43c99da3fe714f120c03fbe1510f2f (plain)
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
33
34
35
36
37
38
39
40
41
42
43
# Maintainer: Davide Depau <davide@depau.eu>

pkgname=networkmanager-wireguard-git
pkgver=r87.0e1124d
pkgrel=1
pkgdesc='NetworkManager VPN plugin for WireGuard - git'
arch=('i686' 'x86_64' 'armv7h' 'aarch64' 'pentium4')
license=('GPL')
url='https://github.com/max-moser/network-manager-wireguard/'
depends=('networkmanager' 'libnma' 'WIREGUARD-MODULE' 'wireguard-tools' 'libnm-glib')
makedepends=('git' 'intltool')
provides=('networkmanager-wireguard')
conflicts=('networkmanager-wireguard')
source=("$pkgname::git+https://github.com/max-moser/network-manager-wireguard.git")
sha256sums=('SKIP')

pkgver() {
	cd "$pkgname"
	( set -o pipefail
		git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
		printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
	)
}

build() {
	cd $pkgname

	./autogen.sh
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--libexecdir=/usr/lib/networkmanager \
		--enable-more-warnings=yes \
		--disable-static
	make
}

package() {
	cd $pkgname

	make DESTDIR="${pkgdir}" sysconfdir=/etc libdir=/usr/lib install
}