updated on Fri Jan 13 20:02:10 UTC 2012
[aur-mirror.git] / openconnect-git / PKGBUILD
blobf9599a43ffaf90f6e2a179a45a600e96b17985e5
1 # Contributor: dschauer, Dwight Schauer <dschauer@gmail.com>
2 pkgname=openconnect-git
3 pkgver=20090404
4 pkgrel=1
5 pkgdesc="VPN client (intended to be) compatible with Cisco AnyConnect"
6 arch=(i686 x86_64)
7 url="http://git.infradead.org/users/dwmw2/openconnect.git"
8 license=('LGPL')
9 groups=()
10 depends=()
11 makedepends=('git')
12 provides=(openconnect anyconnect)
13 conflicts=()
14 replaces=()
15 backup=()
16 options=()
17 install=
18 source=(on_connect.patch)
19 noextract=()
20 #md5sums=() #generate with 'makepkg -g'
21 md5sums=('2360ec0f88289a50106247f28d3b012e')
23 _gitroot="git://git.infradead.org/users/dwmw2/openconnect.git"
24 _gitname="openconnect"
26 build() {
27   cd "${srcdir}"
28   msg "Connecting to GIT server...."
30   if [ -d ${_gitname} ] ; then
31     cd ${_gitname} && git pull origin
32     msg "The local files are updated."
33   else
34     git clone ${_gitroot}
35     cd ${_gitname}
36   fi
38   msg "GIT checkout done or server timeout"
39   msg "Starting make..."
41   #
42   # BUILD HERE
43   #
45   make clean
46   [ -f main.c.0 ] && cp main.c.0 main.c
47   cp main.c main.c.0
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
52