1 # Contributor: bakthariq <bakthariq-at-gmail-dot-com>
6 pkgdesc="A rich multimedia player that uses the mplayer backend"
8 url="http://kplayer.sourceforge.net"
10 depends=('kdelibs' 'qt' 'mplayer')
11 makedepends=('pkgconfig' 'git' 'automoc4' 'cmake')
12 install=kplayer.install
13 conflict=('kplayer<=0.7')
15 _gitroot="git://anongit.kde.org/kplayer.git"
23 msg "Connecting to GIT server...."
25 if [ -d "${srcdir}/${_gitname}" ] ; then
26 cd ${_gitname} && git pull --rebase
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf ${srcdir}/build
35 mkdir -p ${srcdir}/build
36 cd ${srcdir}/build || return 1
38 cmake -DCMAKE_INSTALL_PREFIX=$( kde4-config --prefix ) -DCMAKE_BUILD_TYPE=Release ../${_gitname}
41 make DESTDIR=$pkgdir install || return 1