summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 442b65cff20e93d44d749f5c6ae409eb8fef7074 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Maintainer: Brian Bidulock <bidulock@openss7.org>

pkgname=openconnect-git
_pkgname=openconnect
pkgver=8.10.r753.gb0e53bfa
pkgrel=1
pkgdesc="Open client for Cisco AnyConnect VPN"
arch=('i686' 'x86_64')
license=('GPL')
url="http://www.infradead.org/openconnect.html"
depends=('libproxy' 'vpnc' 'pcsclite' 'trousers' 'stoken' 'oath-toolkit')
makedepends=('intltool' 'python' 'git')
options=('!emptydirs')
provides=($_pkgname 'libopenconnect.so')
conflicts=($_pkgname)
source=("$pkgname::git+https://gitlab.com/ocserv/$_pkgname.git/")
source=("$pkgname::git://git.infradead.org/users/dwmw2/$_pkgname.git")
source=("$pkgname::git+https://gitlab.com/openconnect/$_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/python ./configure --prefix=/usr \
      --sbindir=/usr/bin \
      --libexecdir=/usr/lib \
      --disable-static \
      --without-gnutls \
      --with-vpnc-script=/etc/vpnc/vpnc-script
  # Fight unused direct deps
  sed -i -e "s/ -shared / $LDFLAGS\0 /g" libtool
  make V=0
}

package() {
  cd $pkgname
  make DESTDIR="$pkgdir" install
}