From 85465f77e667c682f15bd670c089d3be553cca9f Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Sun, 11 Jul 2021 20:17:31 +0200 Subject: [PATCH 1/2] python3-mpd2: update to 3.0.4. --- srcpkgs/python3-mpd2/template | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srcpkgs/python3-mpd2/template b/srcpkgs/python3-mpd2/template index 29ecea48b682..042cd65b6c34 100644 --- a/srcpkgs/python3-mpd2/template +++ b/srcpkgs/python3-mpd2/template @@ -1,7 +1,7 @@ # Template file for 'python3-mpd2' pkgname=python3-mpd2 -version=1.0.0 -revision=4 +version=3.0.4 +revision=1 wrksrc=python-mpd2-$version build_style=python3-module hostmakedepends="python3-setuptools" @@ -12,7 +12,7 @@ maintainer="Jens E. Becker " license="LGPL-2.1-or-later" homepage="https://github.com/Mic92/python-mpd2" distfiles="https://github.com/Mic92/python-mpd2/archive/v${version}.tar.gz" -checksum=877fa1685a56815107cb0b1eb004e7fe261b620fafd4d38cdaa2b6f3edd35928 +checksum=05ac5d339932f5d0557cb10c43bf4f1df74937f660125cf7fdd0f1691da98278 do_check() { python3 -m unittest mpd.tests From 627c24651eb296457423b14fc2b511427acbaef9 Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Sun, 11 Jul 2021 20:17:41 +0200 Subject: [PATCH 2/2] bum: fix for python3-mpd2 v3 --- srcpkgs/bum/patches/mpd2-3.patch | 17 +++++++++++++++++ srcpkgs/bum/template | 6 +++--- 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/bum/patches/mpd2-3.patch diff --git a/srcpkgs/bum/patches/mpd2-3.patch b/srcpkgs/bum/patches/mpd2-3.patch new file mode 100644 index 000000000000..c576bf52cb28 --- /dev/null +++ b/srcpkgs/bum/patches/mpd2-3.patch @@ -0,0 +1,17 @@ +based on https://github.com/dylanaraps/bum/pull/24 +--- a/bum/__main__.py ++++ b/bum/__main__.py +@@ -62,11 +62,8 @@ def main(): + while True: + song.get_art(args.cache_dir, args.size, client) + display.launch(disp, args.cache_dir / "current.jpg") +- client.send_idle() +- +- if client.fetch_idle(["player"]): +- print("album: Received player event from mpd. Swapping cover art.") +- continue ++ client.idle("player") ++ print("album: Received player event from mpd. Swapping cover art.") + + + if __name__ == "__main__": diff --git a/srcpkgs/bum/template b/srcpkgs/bum/template index dd8f302132ff..5d11f493717d 100644 --- a/srcpkgs/bum/template +++ b/srcpkgs/bum/template @@ -1,17 +1,17 @@ # Template file for 'bum' pkgname=bum version=0.1.3 -revision=5 +revision=6 build_style=python3-module -pycompile_module="bum" hostmakedepends="python3-setuptools" -depends="python3-setuptools python3-mpd2 python3-musicbrainzngs python3-mpv" +depends="python3-mpd2 python3-musicbrainzngs python3-mpv" short_desc="Daemon that downloads and displays album arts via MPD events" maintainer="Orphaned " license="MIT" homepage="https://github.com/dylanaraps/bum" distfiles="https://github.com/dylanaraps/bum/archive/${version}.tar.gz" checksum=512b64d2fbd0d96b1c242f5e2b916c126671bd16dfbb5c71d164a39b5ebeeebe +make_check=no # no tests, but check fails with a non-zero exit code post_install() { vlicense LICENSE.md