From cce31001591fcb40302dcb634154924e2addcf46 Mon Sep 17 00:00:00 2001 From: dogknowsnx Date: Mon, 2 Feb 2026 16:09:57 +0100 Subject: [PATCH] New package: uosc-5.12.0 --- srcpkgs/uosc/files/README.voidlinux | 22 +++++++++++++++++++++ srcpkgs/uosc/template | 30 +++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 srcpkgs/uosc/files/README.voidlinux create mode 100644 srcpkgs/uosc/template diff --git a/srcpkgs/uosc/files/README.voidlinux b/srcpkgs/uosc/files/README.voidlinux new file mode 100644 index 00000000000000..4e214b95dd3067 --- /dev/null +++ b/srcpkgs/uosc/files/README.voidlinux @@ -0,0 +1,22 @@ +### Configuration options recommended by the author: + + +OPTIONAL: 'mpv.conf' tweaks to better integrate with 'uosc': + +# uosc provides seeking & volume indicators (via flash-timeline and flash-volume commands) +# if you decide to use them, you don't need osd-bar +osd-bar=no + +# uosc will draw its own window controls and border if you disable window border +border=no + + +OPTIONAL: If the UI feels sluggish/slow while playing video, +you can remedy this a bit by placing this in your 'mpv.conf': + +video-sync=display-resample + + +### + +Source: https://github.com/tomasklaen/uosc/blob/main/README.md diff --git a/srcpkgs/uosc/template b/srcpkgs/uosc/template new file mode 100644 index 00000000000000..b7c736eedca0da --- /dev/null +++ b/srcpkgs/uosc/template @@ -0,0 +1,30 @@ +# Template file for 'uosc' +pkgname=uosc +version=5.12.0 +revision=1 +conf_files="/etc/mpv/script-opts/uosc.conf" +depends="mpv" +short_desc="Feature-rich minimalist proximity-based UI for MPV player" +maintainer="dogknowsnx " +license="LGPL-2.1-or-later" +homepage="https://github.com/tomasklaen/uosc" +changelog="https://github.com/tomasklaen/uosc/releases" +distfiles="https://github.com/tomasklaen/uosc/archive/refs/tags/${version}.tar.gz" +checksum=a84476d6826406f1eb0815c2ce0c1318858f18de8d77c47b4387175641a13ba9 + +do_install() { + mkdir -p ${DESTDIR}/etc/mpv/{fonts,script-opts} + mkdir -p ${DESTDIR}/etc/mpv/scripts/uosc/{char-conv,elements,intl,lib} + + vinstall src/uosc.conf 0644 etc/mpv/script-opts + vinstall src/uosc/main.lua 0644 etc/mpv/scripts/uosc + vinstall src/uosc/char-conv/zh.json 0644 etc/mpv/scripts/uosc/char-conv + + rm src/uosc/elements/Updater.lua + vcopy "src/fonts/*" etc/mpv/fonts + vcopy "src/uosc/elements/*" etc/mpv/scripts/uosc/elements + vcopy "src/uosc/intl/*" etc/mpv/scripts/uosc/intl + vcopy "src/uosc/lib/*" etc/mpv/scripts/uosc/lib + + vdoc ${FILESDIR}/README.voidlinux +}