1 # Contributor: Michael P <ptchinster@archlinux.us>
7 url="http://github.com/pizza/lanmap2"
10 depends=('sqlite3' 'libpcap' 'php' 'graphviz')
11 makedepends=('git' 'gcc')
17 install='lanmap2.install'
22 _gitroot="git://github.com/pizza/lanmap2.git"
27 msg "Connecting to GIT server...."
29 if [ -d $_gitname ] ; then
30 cd $_gitname && git pull origin
31 msg "The local files are updated."
33 git clone $_gitroot $_gitname
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"
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}