archrelease: copy trunk to extra-x86_64
[arch-packages.git] / networkmanager-vpnc / repos / extra-x86_64 / PKGBUILD
blob248c32fcfc24af2c86fdfd08d9c1a559ff4324dc
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Ionut Biru <ibiru@archlinux.org>
4 pkgname=networkmanager-vpnc
5 pkgver=1.2.8
6 pkgrel=3
7 pkgdesc="NetworkManager VPN plugin for VPNC"
8 url="https://wiki.gnome.org/Projects/NetworkManager"
9 arch=(x86_64)
10 license=(GPL)
11 depends=(
12   libnm
13   libsecret
14   vpnc
16 makedepends=(
17   git
18   intltool
19   libnma
20   libnma-gtk4
21   python
23 optdepends=(
24   'libnma-gtk4: GUI support (GTK 4)'
25   'libnma: GUI support (GTK 3)'
27 _commit=75f664ff13ff1de9bf305894ccd94b30867bd06a  # tags/1.2.8^0
28 source=("git+https://gitlab.gnome.org/GNOME/NetworkManager-vpnc.git#commit=$_commit")
29 b2sums=('SKIP')
31 pkgver() {
32   cd NetworkManager-vpnc
33   git describe --tags | sed 's/-dev/dev/;s/[^-]*-g/r&/;s/-/+/g'
36 prepare() {
37   cd NetworkManager-vpnc
39   # https://gitlab.gnome.org/GNOME/NetworkManager-vpnc/-/issues/8
40   # https://gitlab.gnome.org/GNOME/NetworkManager-vpnc/-/merge_requests/9
41   git cherry-pick -n f4df2db6ca1c0dfe29ea721c443f38c545721be9
43   intltoolize --automake --copy
44   autoreconf -fvi
47 build() {
48   cd NetworkManager-vpnc
49   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
50     --libexecdir=/usr/lib --disable-static --with-gtk4
51   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
52   make
55 package() {
56   cd NetworkManager-vpnc
57   make DESTDIR="$pkgdir" install dbusservicedir=/usr/share/dbus-1/system.d
60 # vim:set sw=2 sts=-1 et: