diff --git a/srcpkgs/bum/patches/mpd2-3.patch b/srcpkgs/bum/patches/mpd2-3.patch new file mode 100644 index 00000000000..c576bf52cb2 --- /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 dd8f302132f..5d11f493717 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