updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / qutim-0.2-protocol-jabber-git / PKGBUILD
blob1c94102b03cdbd3b7dd55e1f7425338dc9d380c0
1 # Contributor: Lex Rivera <x-demon@x-demon.org>
2 pkgname=qutim-0.2-protocol-jabber-git
3 pkgver=20100401
4 pkgrel=1
5 pkgdesc="Jabber protocol for Qutim"
6 arch=('i686' 'x86_64')
7 url="http://qutim.org"
8 license=('GPL')
9 depends=('qutim')
10 makedepends=()
11 optdepends=()
12 provides=()
14 _gitroot="git://gitorious.org/qutim/protocols.git"
15 _gitname="protocols/jabber"
17 build() {
18   msg "Git checkout"
19   if [ -d $srcdir/$_gitname ]
20     then
21     msg "Updating local repository..."
22     cd $_gitname
23     git pull origin sdk02 || return 1
24   msg "The local files are updated."
25   else
26     git clone $_gitroot
27     cd $_gitname
28     git checkout origin/sdk02
29   fi
30   msg "Git checkout done or server timeout"
31   msg "Creating temporary build directory..."
32   cp -r $srcdir/$_gitname $srcdir/$_gitname-build
33   cd $srcdir/$_gitname-build
35   msg "Building and installing..."
36   cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release || return 1
37   make DESTDIR=${pkgdir} install || return 1
38   install -Dm644 $srcdir/protocols/jabber-build/include/qutim/jabber.h  ${pkgdir}/usr/include/qutim/jabber.h
40   msg "Removing build directory..."
41   cd ${srcdir}
42   rm -Rf ${_gitname}-build
44 # vim:syntax=sh