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