updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / znc-git / PKGBUILD
blob005d68272120c564fceb134f7b55229888f6e447
1 # contributor: <scj archlinux us>
3 pkgname=znc-git
4 pkgver=20110516
5 pkgrel=1
6 pkgdesc="An advanced IRC bouncer"
7 arch=(i686 x86_64)
8 url="http://znc.in"
9 license=('GPL')
10 depends=('perl')
11 makedepends=('git' 'swig')
12 provides=('znc')
13 optdepends=('openssl' 'c-ares')
14 install=
15 source=()
17 _gitroot="git://github.com/znc/znc.git"
18 _gitname="znc"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [ -d $_gitname ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot $_gitname
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
34   rm -rf "$srcdir/$_gitname-build"
35   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36   cd "$srcdir/$_gitname-build"
38   #
39   # BUILD HERE
40   #
42   ./autogen.sh
43   ./configure --prefix=/usr --enable-perl
44   make
47 package() {
48   cd "$srcdir/$_gitname-build"
49   make DESTDIR="$pkgdir/" install
50