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