updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ruijieclient-git / PKGBUILD
blob27296d9e2a226d75e6b272b30950d7000cc36742
1 # Maintainer: Felix Yan <felixonmars@gmail.com>
2 pkgname=ruijieclient-git
3 pkgver=20111205
4 pkgrel=1
5 pkgdesc="A Ruijie Network Supplicant For GNU/Linux - Git Version"
6 arch=('i686' 'x86_64')
7 url="http://code.google.com/p/ruijieclient/"
8 license=('LGPL3')
9 depends=('libpcap' 'libxml2')
10 makedepends=('git')
11 provides=('ruijieclient')
12 conflicts=('ruijieclient')
13 source=()
14 md5sums=()
16 _gitroot=('git://github.com/microcai/ruijieclient.git')
17 _gitname=('ruijieclient')
19 build() {
20   cd "$srcdir"
21   msg "Connecting to github.com git server..."
22   [ ! -d "$srcdir/$_gitname-build" ] || rm -rf "$srcdir/$_gitname-build"
23   
24   if [[ -d $_gitname ]]; then
25    cd $_gitname || return 1
26    git pull origin || return 1
27     else
28    git clone $_gitroot $_gitname || return 1
29      fi
30   msg " checkout done."
32   msg "Starting make..."
34   cd "$srcdir"
35   #rm -r "$srcdir/$_gitname-build"
36   cp -r $srcdir/$_gitname $_gitname-build
37   cd $_gitname-build
39   ./autogen.sh || return 1
40   ./configure --prefix=/usr || return 1
41   make || return 1
42   make DESTDIR="$pkgdir/" install || return 1  
45 # vim:set ts=2 sw=2 et: