updated on Tue Jan 10 08:08:34 UTC 2012
[aur-mirror.git] / kdeplasma-addons-applets-mpd-plasma-svn / PKGBUILD
blobd6c1902f2fcee537f807511a508bf095bb961802
1 # Maintainer: Florian Léger <florian6 dot leger at laposte dot net>
3 pkgname=kdeplasma-addons-applets-mpd-plasma-svn
4 pkgver=26
5 pkgrel=1
6 pkgdesc="Plasma MPD client to display and control playback"
7 url="http://code.google.com/p/mpdplasma/"
8 license=('Apache')
9 arch=('any')
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/"
15 _svnmod="mpd-plasma"
17 build() {
18   cd "$srcdir"
20   if [ -d "${_svnmod}/.svn" ]; then
21     (cd "$_svnmod" && svn up -r "$pkgver")
22   else
23     svn co "$_svntrunk" -r "$pkgver" "$_svnmod"
24   fi
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"
33   #
34   # BUILD
35   #
37   python2 -m compileall src
40 package() {
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"