1
0
mirror of https://github.com/moparisthebest/arch-ppa synced 2024-11-15 21:35:04 -05:00
arch-ppa/src/openconnect-git/PKGBUILD

40 lines
987 B
Bash
Raw Normal View History

2017-11-17 23:03:48 -05:00
# Maintainer: Brian BIdulock <bidulock@openss7.org>
pkgname=openconnect-git
_pkgname=openconnect
2019-03-03 20:21:14 -05:00
pkgver=7.08.r127.g8977877
2018-06-19 01:34:16 -04:00
pkgrel=1
2017-11-17 23:03:48 -05:00
pkgdesc="Open client for Cisco AnyConnect VPN"
arch=('i686' 'x86_64')
license=('GPL')
2017-11-17 23:03:48 -05:00
url="http://www.infradead.org/openconnect.html"
depends=('libxml2' 'gnutls' 'libproxy' 'vpnc' 'krb5' 'lz4' 'pcsclite' 'trousers' 'stoken'
'oath-toolkit')
2017-11-17 23:03:48 -05:00
makedepends=('intltool' 'python2' 'git')
options=('!emptydirs')
provides=($_pkgname)
conflicts=($_pkgname)
2019-03-03 20:21:14 -05:00
source=("$pkgname::git+https://gitlab.com/ocserv/$_pkgname.git/")
source=("$pkgname::git://git.infradead.org/users/dwmw2/$_pkgname.git")
2017-11-17 23:03:48 -05:00
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 \
2019-03-03 20:21:14 -05:00
--disable-static \
--without-gnutls
make V=0
2017-11-17 23:03:48 -05:00
}
package() {
cd $pkgname
make DESTDIR="$pkgdir" install
}