From c7a6482290f21022b081f85754456cf43047cd15 Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 13 Sep 2020 12:26:40 +0000 Subject: [PATCH] anki: backport patch to fix mpv args --- srcpkgs/anki/patches/fix_mpv_args.patch | 29 +++++++++++++++++++++++++ srcpkgs/anki/template | 3 +-- 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/anki/patches/fix_mpv_args.patch diff --git a/srcpkgs/anki/patches/fix_mpv_args.patch b/srcpkgs/anki/patches/fix_mpv_args.patch new file mode 100644 index 00000000000..96dec5eceaf --- /dev/null +++ b/srcpkgs/anki/patches/fix_mpv_args.patch @@ -0,0 +1,29 @@ +--- ./anki/mpv.py ++++ ./anki/mpv.py +@@ -104,9 +104,9 @@ + """ + self.argv = [self.executable] + self.argv += self.default_argv +- self.argv += ["--input-ipc-server", self._sock_filename] ++ self.argv += ["--input-ipc-server="+self._sock_filename] + if self.window_id is not None: +- self.argv += ["--wid", str(self.window_id)] ++ self.argv += ["--wid="+str(self.window_id)] + + def _start_process(self): + """Start the mpv process. + +--- ./anki/sound.py ++++ ./anki/sound.py +@@ -123,10 +123,7 @@ + + def setMpvConfigBase(base): + mpvConfPath = os.path.join(base, "mpv.conf") +- MpvManager.default_argv += [ +- "--no-config", +- "--include="+mpvConfPath, +- ] ++ MpvManager.default_argv += ["--include="+mpvConfPath] + + mpvManager = None + diff --git a/srcpkgs/anki/template b/srcpkgs/anki/template index a25bc0d4e7e..55976fbd26e 100644 --- a/srcpkgs/anki/template +++ b/srcpkgs/anki/template @@ -1,8 +1,7 @@ # Template file for 'anki' pkgname=anki version=2.1.15 -revision=3 -archs=noarch +revision=4 build_style=gnu-makefile depends="python3-PyQt5-webengine python3-requests python3-SQLAlchemy python3-PyAudio python3-mpv python3-Markdown python3-send2trash