diff options
author | Νικόλαος Κυριάκος Φυτίλης | 2019-01-04 16:09:24 +0200 |
---|---|---|
committer | Νικόλαος Κυριάκος Φυτίλης | 2019-01-04 16:09:24 +0200 |
commit | f68705400d016519d9e8f634aa50695e4f50f133 (patch) | |
tree | c9ca980dcfe75788a4a19815ef9df77d01292054 | |
parent | b45091421b6278b775c6a16c5cf7e8a7a945d4e8 (diff) | |
download | aur-f68705400d016519d9e8f634aa50695e4f50f133.tar.gz |
add hack for always reporting mpris play/ pause
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 10 | ||||
-rw-r--r-- | Report-Pause-Play-Hack.patch | 19 |
3 files changed, 29 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = banshee-git pkgdesc = Music management and playback for GNOME (fork by arfbtwn) pkgver = 2.9.1.r355.g10da4d618 - pkgrel = 2 + pkgrel = 3 url = https://github.com/arfbtwn/banshee arch = i686 arch = x86_64 @@ -31,6 +31,7 @@ pkgbase = banshee-git optdepends = brasero: CD burning conflicts = banshee source = git+https://github.com/arfbtwn/banshee.git + source = Report-Pause-Play-Hack.patch md5sums = SKIP pkgname = banshee-git @@ -3,7 +3,7 @@ pkgname=banshee-git _pkgbase=banshee pkgver=2.9.1.r355.g10da4d618 -pkgrel=2 +pkgrel=3 pkgdesc="Music management and playback for GNOME (fork by arfbtwn)" arch=('i686' 'x86_64') url="https://github.com/arfbtwn/banshee" @@ -17,7 +17,8 @@ optdepends=('gst-plugins-ugly: Extra media codecs' 'gst-libav: Extra media codecs' 'brasero: CD burning') conflicts=($_pkgbase) -source=(git+https://github.com/arfbtwn/banshee.git) +source=(git+https://github.com/arfbtwn/banshee.git +'Report-Pause-Play-Hack.patch') md5sums=(SKIP) pkgver() { @@ -25,6 +26,11 @@ pkgver() { git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } +prepare() { + cd "$_pkgbase" + patch -p1 -i $srcdir/Report-Pause-Play-Hack.patch +} + build() { cd $_pkgbase # autoreconf -fvi diff --git a/Report-Pause-Play-Hack.patch b/Report-Pause-Play-Hack.patch new file mode 100644 index 000000000000..3828da73742e --- /dev/null +++ b/Report-Pause-Play-Hack.patch @@ -0,0 +1,19 @@ +diff --git a/src/Extensions/Banshee.Mpris/Banshee.Mpris/MediaPlayer.cs b/src/Extensions/Banshee.Mpris/Banshee.Mpris/MediaPlayer.cs +index d5b38b122..5508ec7a5 100644 +--- a/src/Extensions/Banshee.Mpris/Banshee.Mpris/MediaPlayer.cs ++++ b/src/Extensions/Banshee.Mpris/Banshee.Mpris/MediaPlayer.cs +@@ -187,11 +187,11 @@ namespace Banshee.Mpris + } + + public bool CanPause { +- get { return engine_service.CanPause; } ++ get { return true; } + } + + public bool CanPlay { +- get { return CanControl; } ++ get { return true; } + } + + public bool CanSeek { + |