1 # Contributor: dschauer, Dwight Schauer <dschauer@gmail.com>
2 pkgname=openconnect-git
5 pkgdesc="VPN client (intended to be) compatible with Cisco AnyConnect"
7 url="http://git.infradead.org/users/dwmw2/openconnect.git"
12 provides=(openconnect anyconnect)
18 source=(on_connect.patch)
20 #md5sums=() #generate with 'makepkg -g'
21 md5sums=('2360ec0f88289a50106247f28d3b012e')
23 _gitroot="git://git.infradead.org/users/dwmw2/openconnect.git"
24 _gitname="openconnect"
28 msg "Connecting to GIT server...."
30 if [ -d ${_gitname} ] ; then
31 cd ${_gitname} && git pull origin
32 msg "The local files are updated."
38 msg "GIT checkout done or server timeout"
39 msg "Starting make..."
46 [ -f main.c.0 ] && cp main.c.0 main.c
48 patch --verbose < ${srcdir}/on_connect.patch || return 1
49 # make CC=gcc EXTRA_CFLAGS="-O2 -Wall -Werror" all || return 1
50 make CC=gcc EXTRA_CFLAGS="-O2" all || return 1
51 make DESTDIR="${pkgdir}" install