updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / fsirc-git / PKGBUILD
blobc21859e6269823758d0a262cf088dc2a7fca2200
1 # Contributor: adriano <adriano.src@gmail.com>
3 pkgname=fsirc-git
4 pkgver=20081002
5 pkgrel=1
6 pkgdesc="Simple IRC client in Qt4/C++."
7 arch=('i686' 'x86_64')
8 url="http://nblast.org/wiki/fsirc"
9 license=('GPL2')
10 depends=('qt')
11 makedepends=('cmake' 'git')
12 provides=('fsirc')
13 conflicts=('fsirc')
14 source=()  
15 md5sums=()
17 _gitroot="git://voker57.nonlogic.org/fsirc.git"
18 _gitname="fsirc"
20 build() {
21  cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [ -d "$srcdir/$_gitname" ] ; then
25     cd $_gitname && git-pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
34   if [ -d "$srcdir/$_gitname-build" ] ; then
35   rm -rf "$srcdir/$_gitname-build"
36   fi
37   
38   cp -r "$srcdir/$_gitname" "$startdir/src/$_gitname-build"
39   cd "$srcdir/$_gitname-build"
42   #
43   # BUILD HERE
44   #
46   cmake . -DCMAKE_INSTALL_PREFIX=/usr  || return 1
47   make || return 1
48   make DESTDIR=$startdir/pkg install || return 1