1 # Maintainer: orbisvicis <''.join(chr(ord(c)-1) for c in "pscjtwjdjtAhnbjm/dpn")>
2 pkgname=mpris-remote-git
5 pkgdesc="A utility that controls an MPRIS-capable music player."
7 url="http://incise.org/mpris-remote.html"
8 license=("custom:public domain")
9 depends=("python2" "dbus-python")
11 provides=("${pkgname%-git}")
17 sha1sums=("bd7e4b43037a902dce92dde30c12999a7b09770c")
19 _gitroot="git://github.com/mackstann/mpris-remote.git"
20 _gitname="${pkgname%-git}"
23 local _gitdir="${srcdir}/${_gitname}"
24 msg "Connecting to GIT server...."
26 if [[ -d "$_gitdir" ]]; then
27 cd "$_gitdir" && git pull origin
28 msg "The local files are updated."
30 git clone "$_gitroot" "$_gitdir"
33 msg "GIT checkout done or server timeout"
34 msg "Starting build..."
41 sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' mpris-remote
45 local _gitdir="${srcdir}/${_gitname}"
47 install -d -m755 "${pkgdir}/usr/bin"
48 install -m644 "${_gitdir}/mpris-remote" "${pkgdir}/usr/bin/"
50 install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname%-git}"
51 install -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname%-git}/"
54 # vim:set ts=2 sw=2 et: