updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / bsdwhois-drizztbsd-git / PKGBUILD
blob14fea3785b0c91712f399e5e5bbb2eb9f274885d
1 # Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
3 pkgname='bsdwhois-drizztbsd-git'
4 pkgver=20111104
5 pkgrel=1
6 pkgdesc='FreeBSD Whois Client - Git Version (drizztbsd version)'
7 url='https://github.com/drizztbsd/bsdwhois'
8 arch=('i686' 'x86_64')
9 license=('BSD')
11 _gitroot='https://github.com/drizztbsd/bsdwhois.git'
12 _gitname='bsdwhois'
14 build() {
15   cd "$srcdir"
16   msg "Connecting to GIT server...."
18   if [[ -d "$_gitname" ]]; then
19     cd "$_gitname" && git pull origin
20     msg "The local files are updated."
21   else
22     git clone "$_gitroot" "$_gitname"
23   fi
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"
32   autoreconf -i
33   ./configure --prefix=/usr --program-prefix=bsd
34   make
37 package() {
38   cd "$srcdir/$_gitname-build"
39   make DESTDIR="$pkgdir/" install