updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / wicd-client-kde-git / PKGBUILD
blob8d3fb4cd0312e933817fc35a7c7343e4f7a56db1
1 # Contributor: Marvn <mistrmarvn@gmail.com>
3 pkgname=wicd-client-kde-git
4 pkgver=20110404
5 pkgrel=1
6 pkgdesc="Wicd client build on the KDE Development Platform"
7 arch=("i686" "x86_64")
8 url="http://kde-apps.org/content/show.php/Wicd+Client+KDE?content=132366"
9 license=('GPL')
10 depends=('kdelibs' 'qt' 'wicd')
11 makedepends=('cmake' 'git')
12 conflicts=('wicd-client-kde')
13 _gitroot="git://gitorious.org/wicd-client-kde/wicd-client-kde.git"
14 _gitname="wicd-client-kde"
16 build() {
17         msg "Connecting to GIT server...."
19         
20         [ -d $_gitname ] && {
21                 cd $_gitname
22                 git pull origin
23                 cd ..
25                 msg "Local files have been updated."
26         } || {
27                 git clone $_gitroot
28         }
30         msg "GIT checkout done or server timeout"
32         rm -rf $_gitname-build
33         git clone $_gitname $_gitname-build
34         cd $_gitname-build 
35         cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DPYTHONBIN=python2 . || return 1
36         make || return 1
37   
40 package()
42   cd ${srcdir}/$_gitname-build || return 1
43   make DESTDIR=${pkgdir} install || return 1