updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / qutim-0.2-git / PKGBUILD
blob0d7972f87d3124c2834c354900bf9174ae1ab42d
1 # Contributor: Lex Rivera <x-demon@x-demon.org>
2 pkgname=qutim-0.2-git
3 pkgver=20100105
4 pkgrel=1
5 pkgdesc="Multiplatform instant messenger - Core only. GIT version"
6 arch=('i686' 'x86_64')
7 url="http://qutim.org"
8 license=('GPL')
9 depends=('qt' 'openssl' 'libxss')
10 makedepends=('gcc' 'make' 'cmake' 'git' 'pkgconfig')
11 optdepends=(
12     'qutim-protocol-*: Messaging protocols support'
13     'qutim-plugin-*: Additional features'
15 conflicts=('qutim' 'qutim-svn-dev' 'qutim-archangel' 'qutim-svn' 'qutim-git')
16 provides=('qutim' 'qutim-svn-dev' 'qutim-archangel' 'qutim-svn')
17 replaces=('qutim-svn-dev' 'qutim-archangel')
19 _gitroot="git://gitorious.org/qutim/qutim.git"
20 _gitname="qutim"
22 build() {
23 #git work
24   if [ -d $srcdir/$_gitname ]
25   then
26   msg "Updating local repository..."
27   cd $_gitname
28   git pull origin sdk02 || return 1
29   msg "The local files are updated."
30   else
31   git clone $_gitroot
32   cd $_gitname
33   git checkout origin/sdk02
34   fi
35   msg "git checkout done or server timeout"
36   msg "Creating temporary build directory..."
37   cp -r $srcdir/$_gitname $srcdir/$_gitname-build
38   cd $srcdir/$_gitname-build/
40   msg "Building and installing..."
41   cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release || return 1
42   make DESTDIR=${pkgdir} install || return 1
44   msg "Removing build directory..."
45   cd ${srcdir}
46   rm -Rf ${_gitname}-build
48 # vim:syntax=sh