updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lanmap2-git / PKGBUILD
blob4d49b904ffbf978e410d7a8671f3116bd3b20058
1 # Contributor: Michael P <ptchinster@archlinux.us>
2 pkgname=lanmap2-git
3 pkgver=20101006
4 pkgrel=1
5 pkgdesc=""
6 arch=('i686' 'x86_64')
7 url="http://github.com/pizza/lanmap2"
8 license=('GPL')
9 groups=()
10 depends=('sqlite3' 'libpcap' 'php' 'graphviz')
11 makedepends=('git' 'gcc')
12 provides=('lanmap2')
13 conflicts=('lanmap2')
14 replaces=()
15 backup=()
16 options=()
17 install='lanmap2.install'
18 source=()
19 noextract=()
20 md5sums=()
22 _gitroot="git://github.com/pizza/lanmap2.git"
23 _gitname="lanmap2"
25 build() {
26   cd "$srcdir"
27   msg "Connecting to GIT server...."
29   if [ -d $_gitname ] ; then
30     cd $_gitname && git pull origin
31     msg "The local files are updated."
32   else
33     git clone $_gitroot $_gitname
34   fi
36   msg "GIT checkout done or server timeout"
37   msg "Starting make..."
39   rm -rf "$srcdir/$_gitname-build"
40   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
41   cd "$srcdir/$_gitname-build"
43   db/build-db.sh
45   cd src && make 2>&1 | grep -v bit-field; cd -
47   mkdir -p ${pkgdir}/opt/${pkgname}
48   cp -r ${srcdir}/$_gitname-build/* ${pkgdir}/opt/${pkgname}
49