updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / qutim-plugin-kde-integration-git / PKGBUILD
blob0056853d12d3fb891ff2efd3277e83aa0fe92440
1 # Maintainer: Gadget3000 <gadget3000 at msn dot com>
2 # Contributor: Lex Rivera <x-demon@x-demon.org>
4 pkgname=qutim-plugin-kde-integration-git
5 pkgver=20110904
6 pkgrel=1
7 pkgdesc="KDE4 integration for Qutim"
8 arch=('i686' 'x86_64')
9 url="http://qutim.org"
10 license=('GPL')
11 depends=('qutim' 'kdelibs')
12 makedepends=('git' 'cmake')
13 optdepends=()
14 provides=()
16 _gitroot="git://gitorious.org/qutim/plugins.git"
17 _gitname="kdeintegration"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [[ -d "$_gitname" ]]; then
24     cd "$_gitname" && git pull origin
25     msg "The local files are updated."
26   else
27     git clone "$_gitroot" "$_gitname"
28   fi
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"
37   #
38   # BUILD HERE
39   #
41   cd ${_gitname}
42   msg "Building and installing..." 
43   cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
46 package() {
47   cd "$srcdir/$_gitname-build"
48   cd ${_gitname}
49   make DESTDIR=${pkgdir} install