updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / plasma-mediacenter-git / PKGBUILD
blob02d55962255956f7d491410626e00dc43e65dda5
1 # Maintainer: vicky91 <vickypaiers@gmail.com>
2 pkgname=plasma-mediacenter-git
3 pkgver=20111224
4 pkgrel=1
5 pkgdesc="A Media Center for the KDE Software Compilation based on plasma technology"
6 arch=("i686" "x86_64")
7 url="https://projects.kde.org/projects/playground/multimedia/plasma-mediacenter"
8 license=('GPL3')
9 depends=('kdebase-workspace' 'taglib')
10 makedepends=('cmake' 'automoc4' )
12 _gitroot="git://anongit.kde.org/plasma-mediacenter"
13 _gitname="plasma-mediacenter"
16 build() {
17   cd ${srcdir}/
19     msg "Connecting to the KDE GIT server...."
20     if [[ -d ${srcdir}/${_gitname} ]] ; then
21         cd ${_gitname}
22         git pull origin
23         msg "The local files are updated..."
24     else
25         git clone ${_gitroot} ${_gitname}
26     fi
27     
28     msg "GIT checkout done."
30     msg "Starting make for: ${pkgname}"
31     
32     if [[ -d ${srcdir}/${_gitname}-build ]]; then
33        msg "Cleaning the previous build directory..." 
34        rm -rf ${srcdir}/${_gitname}-build
35     fi
37     git clone ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
38     
39     cd ${srcdir}/${_gitname}-build
41     cmake -DCMAKE_INSTALL_PREFIX=$( kde4-config --prefix ) -DCMAKE_BUILD_TYPE=Release .
43     make || return 1
44     make DESTDIR=$pkgdir install || return 1