1 # Contributor: Olivier Mehani <shtrom-aur@ssji.net>
2 # $Id: PKGBUILD 272 2011-01-09 23:55:48Z shtrom $
6 pkgdesc="An implementation of the XMMS2 media player interface MPRIS as a client for MPD"
8 url="http://ayeon.org/projects/mpDris/"
10 depends=('python2>=2.4' 'dbus-python>=0.80' 'pygobject>=2.14' 'python-mpd>=0.2.0')
11 optdepends=('mpd: the Music Player Daemon')
12 makedepends=('subversion')
13 replaces=("mpdris-svn")
14 conflicts=("mpdris" "mpdris-svn")
15 backup=(etc/mpDris.conf)
17 _gitroot="git://ayeon.org/mpris.git"
23 msg "Connecting to GIT server...."
25 if [ -d $_gitname ] ; then
26 cd $_gitname && git pull origin
27 msg "The local files are updated."
29 git clone $_gitroot $_gitname
32 msg "GIT checkout done or server timeout"
33 msg "Starting make..."
35 rm -rf "$srcdir/$_gitname-build"
36 cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37 cd "$srcdir/$_gitname-build/mpDris"
38 sed -i "1s/python$/&2/" mpDris setup.py list_names.py
40 python2 setup.py install --root=$pkgdir
41 install -m 0644 -D mpDris.conf $pkgdir/etc/mpDris.conf
42 sed -i "s/password.*/password =/" $pkgdir/etc/mpDris.conf