Skip to content

Instantly share code, notes, and snippets.

@thatsmydoing
Created December 28, 2011 14:28
Show Gist options
  • Save thatsmydoing/1528124 to your computer and use it in GitHub Desktop.
Save thatsmydoing/1528124 to your computer and use it in GitHub Desktop.
mpDris2 updated PKGBUILD
# Maintainer: Alucryd <alucryd at gmail dot com>
# Contributor : André Prata <andreprata at bugflux dot org>
pkgname="mpdris2-git"
pkgver=20111228
pkgrel=1
pkgdesc="MPRIS2 support for MPD"
url="https://github.com/eonpatapon/mpDris2"
arch=('x86_64' 'i686')
license=('GPL3')
depends=('mpd' 'dbus-python' 'pygobject' 'python' 'python-mpd')
_gitroot="https://github.com/eonpatapon/mpDris2.git"
_gitname="mpdris2"
build() {
cd ${srcdir}
msg "Connecting to the GIT server..."
if [[ -d ${srcdir}/${_gitname} ]] ; then
cd ${_gitname}
git pull origin
msg "The local files are updated..."
else
git clone ${_gitroot} ${_gitname}
cd ${_gitname}
fi
msg "GIT checkout done."
./autogen.sh
./configure --prefix=/usr --sysconfdir=/etc
make
}
package() {
cd "${srcdir}/${_gitname}"
DESTDIR="${pkgdir}" make install
sed -i "s/python/python2/" "${pkgdir}/usr/bin/mpDris2"
}
@grawity
Copy link

grawity commented Dec 28, 2011

10: depends on python2

28: ./autogen.sh --prefix=/usr would be enough here.

35: "1s/python/python2/" to avoid possibly changing the code itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment