sbcl rebuild
[arch-packages.git] / networkmanager-openconnect / trunk / PKGBUILD
blob5a18fb02e46f632f4ccf7fba39847b0f9b9b93b7
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Ionut Biru <ibiru@archlinux.org>
4 pkgname=networkmanager-openconnect
5 pkgver=1.2.8
6 pkgrel=2
7 pkgdesc="NetworkManager VPN plugin for OpenConnect"
8 url="https://wiki.gnome.org/Projects/NetworkManager"
9 arch=(x86_64)
10 license=(GPL)
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 options=(debug)
16 _commit=6eaa0604da8f1927db18a315dba7a3eaff4ec56e  # tags/1.2.8^0
17 source=("git+https://gitlab.gnome.org/GNOME/NetworkManager-openconnect.git#commit=$_commit")
18 sha256sums=('SKIP')
20 pkgver() {
21   cd NetworkManager-openconnect
22   git describe --tags | sed 's/-dev/dev/;s/[^-]*-g/r&/;s/-/+/g'
25 prepare() {
26   cd NetworkManager-openconnect
27   intltoolize --automake --copy
28   autoreconf -fvi
31 build() {
32   cd NetworkManager-openconnect
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
36   make
39 package() {
40   cd NetworkManager-openconnect
41   make DESTDIR="$pkgdir" install dbusservicedir=/usr/share/dbus-1/system.d
42   echo 'u nm-openconnect - "NetworkManager OpenConnect"' |
43     install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
46 # vim:set sw=2 et: