updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / akiirc-git / PKGBUILD
blobd1650712042a6b7ded890e5aab048517cef2b692
1 # Contributor: Martin T. Sandsmark <martin.sandsmark@kde.org>
3 pkgname=akiirc-git
4 pkgver=20100128
5 pkgrel=1
6 pkgdesc="AkiIrc is an IRC library, mainly used by the Aki IRC client."
7 arch=('x86_64' 'i686')
8 url="http://akiirc.org/"
9 license=('LGPL2.1')
10 groups=()
11 depends=('kdelibs>=4.3.80' 'qt>=4.6' 'kdebindings-python>=4.3.80')
12 makedepends=('git')
13 provides=('akiirc')
14 conflicts=('akiirc')
15 replaces=('akiirc')
16 source=()
17 md5sums=()
19 _gitroot="git://gitorious.org/aki/akiirc.git"
20 _gitname="akiirc"
22 build() {
23   cd "$srcdir"
24   msg "Connecting to GIT server...."
26   if [ -d $_gitname ] ; then
27     cd $_gitname && git pull origin
28     msg "The local files are updated."
29   else
30     git clone $_gitroot $_gitname
31   fi
33   msg "GIT checkout done or server timeout"
34   msg "Starting make..."
36   rm -rf "$srcdir/$_gitname-build"
37   mkdir "$srcdir/$_gitname-build"
38   cd "$srcdir/$_gitname-build"
40   #
41   # BUILD HERE
42   #
44   cmake "$srcdir/$_gitname" -DCMAKE_BUILD_PREFIX=/usr || return 1
45   make VERBOSE=1 || return 1
46   make DESTDIR="$pkgdir/" install
47