Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions srcpkgs/uosc/files/README.voidlinux
Original file line number Diff line number Diff line change
@@ -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
30 changes: 30 additions & 0 deletions srcpkgs/uosc/template
Original file line number Diff line number Diff line change
@@ -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 <dogknowsnx@tutamail.com>"
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
}