1 # Maintainer: Gadget3000 <gadget3000 at msn dot com>
2 # Contributor: Lex Rivera <x-demon@x-demon.org>
4 pkgname=qutim-plugin-kde-integration-git
7 pkgdesc="KDE4 integration for Qutim"
11 depends=('qutim' 'kdelibs')
12 makedepends=('git' 'cmake')
16 _gitroot="git://gitorious.org/qutim/plugins.git"
17 _gitname="kdeintegration"
21 msg "Connecting to GIT server...."
23 if [[ -d "$_gitname" ]]; then
24 cd "$_gitname" && git pull origin
25 msg "The local files are updated."
27 git clone "$_gitroot" "$_gitname"
30 msg "GIT checkout done or server timeout"
31 msg "Starting build..."
33 rm -rf "$srcdir/$_gitname-build"
34 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35 cd "$srcdir/$_gitname-build"
42 msg "Building and installing..."
43 cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
47 cd "$srcdir/$_gitname-build"
49 make DESTDIR=${pkgdir} install