# Contributor: Myautsai PAN # Maintainer: Francesco Colista pkgname=openconnect pkgver=8.03 pkgrel=0 pkgdesc="Open client for Cisco AnyConnect VPN" url="http://www.infradead.org/openconnect/" arch="all" license="LGPL-2.1" depends="vpnc iproute2" makedepends="autoconf automake intltool openssl-dev libxml2-dev krb5-dev lz4-dev libproxy-dev linux-headers stoken-dev pcsc-lite-dev oath-toolkit-dev python-dev" subpackages="$pkgname-doc $pkgname-dev $pkgname-openrc" source="ftp://ftp.infradead.org/pub/$pkgname/$pkgname-$pkgver.tar.gz $pkgname.initd $pkgname.confd $pkgname.logrotate" builddir=$srcdir/$pkgname-$pkgver build() { cd $builddir ./configure \ --prefix=/usr \ --sbindir=/usr/bin \ --disable-static \ --disable-rpath \ --with-openssl \ --with-stoken \ --with-pcsclite \ --with-vpnc-script=/etc/vpnc/vpnc-script \ --disable-nls make } check() { cd $builddir make check } package() { cd $builddir make DESTDIR="$pkgdir" install install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname install -Dm755 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname install -Dm644 "$srcdir"/$pkgname.logrotate "$pkgdir"/etc/logrotate.d/$pkgname mkdir -p "$pkgdir"/var/log/openconnect mkdir -p "$pkgdir"/etc/openconnect } sha512sums="e5cae7aacc5684c585992c8199d47c1318a710d2f3638e0b71f5ab3ee7f35406306462e19ba55b32351a3894c83c256569e2e096da0bc8f6404f2740168e73da openconnect-8.03.tar.gz 7b832550ef21ddb4b1c0eae7f3838b925745a5ebbdb74f1583fb8710b75175ebcbc7b1558ce95f59cd78542bec8bc01f7ab6d32ec4a5b168bb8a516a8907d362 openconnect.initd a689df7141621c80bca77fdd1e01397b98882c7fd8db79b2fe1495916656522234e3af739538002533c003e4243e9af4bf80cd73bae961e15568997ce89ef6d5 openconnect.confd 3b269eb7f469343d48e6e3aa694c5c051811c217217bebf2e74d051cbacf2b57ba926ea69474d30937067f45100863188f719db3fa1bcb4862ddbf446bdd48d2 openconnect.logrotate"