updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / kdeplasma-addons-applets-veromix-svn / PKGBUILD
blobf641dd77452288d8c0df1d7357e2ede8c7e64e1f
1 # Maintainer: M0Rf30 < morf3089 at gmail dot com >
3 pkgname=kdeplasma-addons-applets-veromix-svn
4 pkgver=303
5 pkgrel=1
6 pkgdesc="A plasmoid mixer for the Pulseaudio sound server"
7 url="http://code.google.com/p/veromix-plasmoid/"
8 license=('GPL3')
9 arch=('i686' 'x86_64')
10 depends=('kdebindings-python' 'kdebase-workspace' 'python2-qt' 'pulseaudio' 'pyxdg')
11 conflicts=('kdeplasma-addons-applets-veromix')
12 makedepends=('svn')
13 optdepends=('pulseaudio-equalizer'
14             'swh-plugins: equalizer and other effects support')
15 _svnmod="veromix"
16 _svntrunk="http://veromix-plasmoid.googlecode.com/svn/trunk/"
18 build() {
20 cd $srcdir/
21         
22         msg "Connecting to $_svnmod SVN server..."
24   if [ -d $_svnmod ] ; then
25     (cd $_svnmod && svn update)
26     msg "The local files are updated."
27   else
28     svn co ${_svntrunk} ${_svnmod}
29   fi
32         msg "SVN checkout done or server timeout"
33         cd ${_svnmod}
34         install -dm755 ${pkgdir}/usr/share/apps/plasma/plasmoids/veromix-plasmoid || return 1
35         cp -R {contents,dbus-service,metadata.desktop} ${pkgdir}/usr/share/apps/plasma/plasmoids/veromix-plasmoid || return 1
36         install -Dm644 metadata.desktop ${pkgdir}/usr/share/kde4/services/plasma-applet-veromix-plasmoid.desktop || return 1
37   
38         #fix for python
39         sed -i -e '1 s/python/python2/' ${pkgdir}/usr/share/apps/plasma/plasmoids/veromix-plasmoid/dbus-service/VeromixServiceMain.py