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