updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / nd-git / PKGBUILD
blob3b10a555e6bc013b8befe9ecadf0ebf2ee7211e9
1 pkgname=nd-git
2 pkgver=20110401
3 pkgrel=1
4 pkgdesc="A network diagnostics utility"
5 arch=('i686' 'x86_64')
6 url="https://github.com/benruijl/nd"
7 license=('GPLv3')
8 depends=('iproute2' 'dnsutils' 'diffutils')
9 makedepends=('git')
11 _gitroot="git://github.com/benruijl/nd.git"
12 _gitname="nd"
14 build() {
15   cd "$srcdir"
17   msg "Connecting to GIT server...."
19   if [ -d $_gitname ]; then
20      cd $_gitname && git pull origin
21      msg "The local files are updated."
22   else
23      git clone $_gitroot $_gitname
24      cd $_gitname
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting install..."
30   install -D -m755 nd.sh $startdir/pkg/usr/bin/nd