updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / mpdris2-git / PKGBUILD
blob819b1de544cb54d26885d6c60c27c17bf8c0f572
1 # Maintainer: Alucryd <alucryd at gmail dot com>
2 # Contributor : AndrĂ© Prata <andreprata at bugflux dot org>
3 pkgname="mpdris2-git"
4 pkgver=20111228
5 pkgrel=1
6 pkgdesc="MPRIS2 support for MPD"
7 url="https://github.com/eonpatapon/mpDris2"
8 arch=('x86_64' 'i686')
9 license=('GPL3')
10 depends=('mpd' 'dbus-python' 'python2-gobject' 'python2' 'python-mpd')
12 _gitroot="https://github.com/eonpatapon/mpDris2.git"
13 _gitname="mpdris2"
15 build() {
16   cd $srcdir
17   msg "Connecting to the GIT server..."
18   if [[ -d $srcdir/$_gitname ]] ; then
19     cd $_gitname
20     git pull origin
21     msg "The local files are updated..."
22   else
23     git clone $_gitroot $_gitname
24     cd $_gitname
25   fi
26   msg "GIT checkout done."
27   ./autogen.sh
28   ./configure --prefix=/usr --sysconfdir=/etc
29   make
32 package() {
33   cd $srcdir/$_gitname
34   make DESTDIR=$pkgdir install
35   sed -i "s/python/python2/" "$pkgdir/usr/bin/mpDris2"