updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / qutim-protocol-jabber-git / PKGBUILD
blob9fa0f2126fa507d99de4d27ac62fdbb140783664
1 # Contributor: Lex Rivera <x-demon@x-demon.org>
2 pkgname=qutim-protocol-jabber-git
3 pkgver=20091220
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/jabber.git"
15 _gitname="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 master || return 1
24   msg "The local files are updated."
25   else
26   git clone $_gitroot
27   fi
28 msg "Git checkout done or server timeout"
29 msg "Creating temporary build directory..."
30   cp -r $srcdir/$_gitname $srcdir/$_gitname-build
31   cd $srcdir/$_gitname-build
33 msg "Building and installing..." 
34   cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release || return 1
35   make DESTDIR=${pkgdir} install || return 1
36   install -Dm 644 $_svnmod-build/libjabber.so $pkgdir/usr/lib/qutim/libjabber.so || return 1
38 msg "Removing build directory..."
39   cd ${srcdir}
40   rm -Rf ${_svnmod}-build
42 # vim:syntax=sh