updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / kplayer-git / PKGBUILD
blob75a831c77153646930133c4993986fb075a1eaff
1 # Contributor: bakthariq <bakthariq-at-gmail-dot-com>
3 pkgname=kplayer-git
4 pkgver=20110428
5 pkgrel=1
6 pkgdesc="A rich multimedia player that uses the mplayer backend"
7 arch=("i686" "x86_64")
8 url="http://kplayer.sourceforge.net"
9 license=('GPL')
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"
16 _gitname="kplayer"
18 source=()
19 md5sums=()
21 build() {
22   cd ${srcdir}
23   msg "Connecting to GIT server...."
25   if [ -d "${srcdir}/${_gitname}" ] ; then
26     cd ${_gitname} && git pull --rebase
27   else
28     git clone ${_gitroot}
29   fi
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}
40   make || return 1
41   make DESTDIR=$pkgdir install || return 1