1 # Maintainer: Felix Yan <felixonmars@gmail.com>
2 pkgname=ruijieclient-git
5 pkgdesc="A Ruijie Network Supplicant For GNU/Linux - Git Version"
7 url="http://code.google.com/p/ruijieclient/"
9 depends=('libpcap' 'libxml2')
11 provides=('ruijieclient')
12 conflicts=('ruijieclient')
16 _gitroot=('git://github.com/microcai/ruijieclient.git')
17 _gitname=('ruijieclient')
21 msg "Connecting to github.com git server..."
22 [ ! -d "$srcdir/$_gitname-build" ] || rm -rf "$srcdir/$_gitname-build"
24 if [[ -d $_gitname ]]; then
25 cd $_gitname || return 1
26 git pull origin || return 1
28 git clone $_gitroot $_gitname || return 1
32 msg "Starting make..."
35 #rm -r "$srcdir/$_gitname-build"
36 cp -r $srcdir/$_gitname $_gitname-build
39 ./autogen.sh || return 1
40 ./configure --prefix=/usr || return 1
42 make DESTDIR="$pkgdir/" install || return 1
45 # vim:set ts=2 sw=2 et: