1 # Maintainer: Jekyll Wu <adaptee at gmail dot com>
2 # Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
3 # Contributor: Rick W. Chen <stuffcorpse@archlinux.us>
4 # Contributor: Pierre Schmitz <pierre@archlinux.de>
5 # Contributor: Marek Kubica <marek@xivilization.net>
9 pkgname=${realname}-${bename}-git
12 pkgdesc="Mplayer backend for phonon, the multimedia API of KDE."
13 arch=("i686" "x86_64")
14 url="http://projects.kde.org/projects/kdesupport/${realname}/${realname}-${bename}"
16 depends=("${realname}" "${bename}")
17 makedepends=("pkg-config" "cmake" "automoc4" "git")
18 provides=("${realname}-${bename}" "${realname}-backend")
19 conflicts=("${realname}-${bename}" )
20 source=('fix_find_config.patch')
21 md5sums=('55a20d7146371fbf1f1139a2ed874604')
23 _gitroot="git://anongit.kde.org/${realname}-${bename}.git"
24 _gitname="${realname}-${bename}"
29 [ ${CARCH} = 'x86_64' ] && CXXFLAGS="$CXXFLAGS -fPIC"
34 msg "Connecting to GIT server...."
35 if [ -d ${_gitname} ] ; then
36 cd ${_gitname} && git pull origin
37 msg "The local files are updated."
39 git clone ${_gitroot} ${_gitname}
40 msg "GIT checkout done"
44 if [ -d "${srcdir}/${_gitname}-build" ]; then
45 rm "${srcdir}/${_gitname}-build/" -rf
47 cp -r "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
50 cd "${srcdir}/${_gitname}-build"
51 patch -Np1 -i ${srcdir}/fix_find_config.patch
54 msg "Starting make..."
56 { type -P kde4-config &>/dev/null && _prefix=$(kde4-config --prefix) ; } || _prefix=/usr
58 -DCMAKE_BUILD_TYPE=Release \
59 -DCMAKE_INSTALL_PREFIX=$_prefix \
60 -DPLUGIN_INSTALL_DIR=$_prefix/lib/kde4 \
61 -DSERVICES_INSTALL_DIR=$_prefix/share/kde4/services \
69 cd "${srcdir}/${_gitname}-build"
70 make DESTDIR=${pkgdir} install || return 1