updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / plasma-media-center-git / PKGBUILD
blobd85a8b86d2c0d56119cf4445d44b40057dc2cd10
1 # Contributor: Flamelab <panosfilip@gmail.com>
3 pkgname=plasma-media-center-git
4 pkgver=20100503
5 pkgrel=1
6 pkgdesc="A Media Center for the KDE Software Compilation based on plasma technology"
7 arch=("i686" "x86_64")
8 url="http://gitorious.org/plasma-media-center"
9 license=('GPL3')
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"
17 build() {
18   cd ${srcdir}/
20     msg "Connecting to the Gitorious GIT server...."
21     if [[ -d ${srcdir}/${_gitname} ]] ; then
22         cd ${_gitname}
23         git pull origin
24         msg "The local files are updated..."
25     else
26         git clone ${_gitroot} ${_gitname}
27     fi
28     
29     msg "GIT checkout done."
31     msg "Starting make for: ${pkgname}"
32     
33     if [[ -d ${srcdir}/${_gitname}-build ]]; then
34        msg "Cleaning the previous build directory..." 
35        rm -rf ${srcdir}/${_gitname}-build
36     fi
38     git clone ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
39     
40     cd ${srcdir}/${_gitname}-build
42     cmake -DCMAKE_INSTALL_PREFIX=$( kde4-config --prefix ) -DCMAKE_BUILD_TYPE=Release .
44     make || return 1
45     make DESTDIR=$pkgdir install || return 1