1 # Contributor: Flamelab <panosfilip@gmail.com>
3 pkgname=plasma-media-center-git
6 pkgdesc="A Media Center for the KDE Software Compilation based on plasma technology"
8 url="http://gitorious.org/plasma-media-center"
10 depends=('kdebase-workspace')
11 makedepends=('cmake' 'automoc4' )
13 _gitroot="git://gitorious.org/~olingerc/plasma-media-center/pmc-mainline.git"
14 _gitname="plasma-media-center"
20 msg "Connecting to the Gitorious GIT server...."
21 if [[ -d ${srcdir}/${_gitname} ]] ; then
24 msg "The local files are updated..."
26 git clone ${_gitroot} ${_gitname}
29 msg "GIT checkout done."
31 msg "Starting make for: ${pkgname}"
33 if [[ -d ${srcdir}/${_gitname}-build ]]; then
34 msg "Cleaning the previous build directory..."
35 rm -rf ${srcdir}/${_gitname}-build
38 git clone ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
40 cd ${srcdir}/${_gitname}-build
42 cmake -DCMAKE_INSTALL_PREFIX=$( kde4-config --prefix ) -DCMAKE_BUILD_TYPE=Release .
45 make DESTDIR=$pkgdir install || return 1