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