1 # Maintainer: Florian Léger <florian6 dot leger at laposte dot net>
3 pkgname=kdeplasma-addons-applets-mpd-plasma-svn
6 pkgdesc="Plasma MPD client to display and control playback"
7 url="http://code.google.com/p/mpdplasma/"
10 depends=('kdebase-workspace' 'kdebindings-python' 'python-mpd')
11 makedepends=('subversion' 'tar')
12 conflicts=('kdeplasma-addons-applets-mpd-plasma')
13 provides=('kdeplasma-addons-applets-mpd-plasma')
14 _svntrunk="http://mpdplasma.googlecode.com/svn/trunk/"
20 if [ -d "${_svnmod}/.svn" ]; then
21 (cd "$_svnmod" && svn up -r "$pkgver")
23 svn co "$_svntrunk" -r "$pkgver" "$_svnmod"
26 msg "SVN checkout done or server timeout"
27 msg "Starting make..."
29 rm -rf "${srcdir}/${_svnmod}-build"
30 cp -r "${srcdir}/${_svnmod}" "${srcdir}/${_svnmod}-build"
31 cd "${srcdir}/${_svnmod}-build"
37 python2 -m compileall src
41 cd "${srcdir}/${_svnmod}-build/src"
42 install -dm755 "${pkgdir}/usr/share/apps/plasma/plasmoids/mpd-plasma"
43 tar -C . --exclude-vcs -cf - . | tar -C "${pkgdir}/usr/share/apps/plasma/plasmoids/mpd-plasma/" -xpf -
44 install -Dm644 metadata.desktop "${pkgdir}/usr/share/kde4/services/plasma-applet-mpd-plasma.desktop"