1 # Contributor: Lex Rivera <x-demon@x-demon.org>
2 pkgname=qutim-0.2-protocol-icq-git
5 pkgdesc="ICQ protocol for Qutim"
14 _gitroot="git://gitorious.org/qutim/protocols.git"
15 _gitname="protocols/oscar"
19 if [ -d $srcdir/$_gitname ]
21 msg "Updating local repository..."
23 git pull origin sdk02 || return 1
24 msg "The local files are updated."
28 git checkout origin/sdk02
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..."
39 install -Dm 644 $srcdir/protocols/oscar-build/liboscar.so $pkgdir/usr/lib/qutim/liboscar.so || return 1
41 msg "Removing build directory..."
43 rm -Rf ${_gitname}-build