1 # Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
3 pkgname='bsdwhois-drizztbsd-git'
6 pkgdesc='FreeBSD Whois Client - Git Version (drizztbsd version)'
7 url='https://github.com/drizztbsd/bsdwhois'
11 _gitroot='https://github.com/drizztbsd/bsdwhois.git'
16 msg "Connecting to GIT server...."
18 if [[ -d "$_gitname" ]]; then
19 cd "$_gitname" && git pull origin
20 msg "The local files are updated."
22 git clone "$_gitroot" "$_gitname"
25 msg "GIT checkout done or server timeout"
26 msg "Starting build..."
28 rm -rf "$srcdir/$_gitname-build"
29 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
30 cd "$srcdir/$_gitname-build"
33 ./configure --prefix=/usr --program-prefix=bsd
38 cd "$srcdir/$_gitname-build"
39 make DESTDIR="$pkgdir/" install