updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / kubeplayer-git / PKGBUILD
blob95bbfd5bba1836857ca9e0b583cac830776fc918
1 # Maintainer: Jakub Kozisek <nodevel at gmail dot com>
3 pkgname=kubeplayer-git
4 pkgver=20110902
5 pkgrel=2
6 pkgdesc="A multimedia player for different online platforms."
7 arch=('i686' 'x86_64')
8 url="https://projects.kde.org/projects/playground/multimedia/kubeplayer"
9 license=('GPLv3')
10 depends=('ruby>=1.9.0' 'phonon' 'kdebindings-korundum' 'kdebindings-smokegen')
11 makedepends=('ruby>=1.9.0' 'git' 'cmake')
12 conflicts=('kubeplayer')
13 replaces=('kubeplayer')
15 _gitroot="git://anongit.kde.org/kubeplayer.git"
16 _gitname="kubeplayer"
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   cmake -DCMAKE_INSTALL_PREFIX=$( kde4-config --prefix ) -DCMAKE_BUILD_TYPE=Release ./${_gitname}
35   make || return 1
36   make DESTDIR=$pkgdir install || return 1