From 6d9f07fc79e6bd279b890dfdb44d2adb98e4fb2c Mon Sep 17 00:00:00 2001 From: moparisthebest Date: Fri, 17 Nov 2017 23:03:48 -0500 Subject: [PATCH] Add openconnect-git --- src/openconnect-git/PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/openconnect-git/PKGBUILD diff --git a/src/openconnect-git/PKGBUILD b/src/openconnect-git/PKGBUILD new file mode 100644 index 0000000..8a629c1 --- /dev/null +++ b/src/openconnect-git/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Brian BIdulock + +pkgname=openconnect-git +_pkgname=openconnect +pkgver=7.08.r46.g91c8188 +pkgrel=1 +pkgdesc="Open client for Cisco AnyConnect VPN" +arch=('i686' 'x86_64') +license=('LGPL2.1') +url="http://www.infradead.org/openconnect.html" +depends=('libxml2' 'gnutls' 'libproxy' 'vpnc' 'krb5' 'lz4' 'pcsclite') +makedepends=('intltool' 'python2' 'git') +options=('!emptydirs') +provides=($_pkgname) +conflicts=($_pkgname) +source=("$pkgname::git+https://gitlab.com/ocserv/$_pkgname.git/") +md5sums=('SKIP') + +pkgver() { + cd "$pkgname" + git describe --long --tags | sed 's,^[^0-9]*,,;s,\([^-]*-g\),r\1,;s,-,.,g' +} + +build() { + cd $pkgname + ./autogen.sh + PYTHON=/usr/bin/python2 ./configure --prefix=/usr \ + --sbindir=/usr/bin \ + --disable-static + make +} + +package() { + cd $pkgname + make DESTDIR="$pkgdir" install +}