diff options
author | shtrom | 2011-01-09 23:55:48 +0000 |
---|---|---|
committer | shtrom | 2011-01-09 23:55:48 +0000 |
commit | 385154cf64d3908dc1a8bd8ac87bb8bf9f46f8a0 (patch) | |
tree | f8314ad6f2e19795113cce13d336a8a0e1520000 /PKGBUILD | |
download | aur-385154cf64d3908dc1a8bd8ac87bb8bf9f46f8a0.tar.gz |
[mpdris-git] Moved from SVN to Git
git-svn-id: svn+ssh://scm.narf.ssji.net/svn/archlinux-packages@272 df209809-8e4a-0410-9a64-c169741eb0fc
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2dbaa979eb28 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Contributor: Olivier Mehani <shtrom-aur@ssji.net> +# $Id$ +pkgname=mpdris-git +pkgver=20110110 +pkgrel=1 +pkgdesc="An implementation of the XMMS2 media player interface MPRIS as a client for MPD" +arch=('i686' 'x86_64') +url="http://ayeon.org/projects/mpDris/" +license=('GPL') +depends=('python2>=2.4' 'dbus-python>=0.80' 'pygobject>=2.14' 'python-mpd>=0.2.0') +optdepends=('mpd: the Music Player Daemon') +makedepends=('subversion') +replaces=("mpdris-svn") +conflicts=("mpdris" "mpdris-svn") +backup=(etc/mpDris.conf) + +_gitroot="git://ayeon.org/mpris.git" +_gitname="mpris" + + +build() { + cd "$srcdir" + msg "Connecting to GIT server...." + + if [ -d $_gitname ] ; then + cd $_gitname && git pull origin + msg "The local files are updated." + else + git clone $_gitroot $_gitname + fi + + msg "GIT checkout done or server timeout" + msg "Starting make..." + + rm -rf "$srcdir/$_gitname-build" + cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build" + cd "$srcdir/$_gitname-build/mpDris" + sed -i "1s/python$/&2/" mpDris setup.py list_names.py + + python2 setup.py install --root=$pkgdir + install -m 0644 -D mpDris.conf $pkgdir/etc/mpDris.conf + sed -i "s/password.*/password =/" $pkgdir/etc/mpDris.conf +} |