Created
December 28, 2011 14:28
-
-
Save thatsmydoing/1528124 to your computer and use it in GitHub Desktop.
mpDris2 updated PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
10: depends on
python2
28:
./autogen.sh --prefix=/usr
would be enough here.35:
"1s/python/python2/"
to avoid possibly changing the code itself.