1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Ionut Biru <ibiru@archlinux.org>
4 pkgname=networkmanager-openvpn
7 pkgdesc="NetworkManager VPN plugin for OpenVPN"
8 url="https://wiki.gnome.org/Projects/NetworkManager"
11 depends=(libnm libsecret openvpn)
12 makedepends=(libnma libnma-gtk4 python git)
13 optdepends=('libnma: GUI support (GTK 3)'
14 'libnma-gtk4: GUI support (GTK 4)')
15 _commit=ae9575dd07cc2d2d51ec8d0297823e07017cb6e6 # tags/1.10.2^0
16 source=("git+https://gitlab.gnome.org/GNOME/NetworkManager-openvpn.git#commit=$_commit")
20 cd NetworkManager-openvpn
21 git describe --tags | sed 's/-dev/dev/;s/[^-]*-g/r&/;s/-/+/g'
25 cd NetworkManager-openvpn
30 cd NetworkManager-openvpn
31 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
32 --libexecdir=/usr/lib --disable-static --with-gtk4
33 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
38 cd NetworkManager-openvpn
39 make DESTDIR="$pkgdir" install dbusservicedir=/usr/share/dbus-1/system.d
40 echo 'u nm-openvpn - "NetworkManager OpenVPN"' |
41 install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
44 # vim:set sw=2 sts=-1 et: