@gbr That sounds reasonable. I will not compress ziggy-linux.
Search Criteria
Package Details: mpv-uosc 5.7.0-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/mpv-uosc.git (read-only, click to copy) |
---|---|
Package Base: | mpv-uosc |
Description: | Feature-rich minimalist proximity-based UI for MPV player. |
Upstream URL: | https://github.com/tomasklaen/uosc |
Keywords: | mpv ui uosc |
Licenses: | LGPL-2.1-or-later |
Submitter: | ZhangHua |
Maintainer: | ZhangHua |
Last Packager: | ZhangHua |
Votes: | 4 |
Popularity: | 0.83 |
First Submitted: | 2023-05-11 11:31 (UTC) |
Last Updated: | 2024-12-23 04:35 (UTC) |
Dependencies (3)
- mpv (mpv-light-pulseAUR, mpv-amd-full-gitAUR, mpv-full-gitAUR, mpv-fullAUR, mpv-gitAUR, mpv-build-gitAUR, mpv-full-build-gitAUR)
- go (go-gitAUR, gcc-go-gitAUR, gcc-go-snapshotAUR, gcc-go) (make)
- mpv-thumbfast (mpv-thumbfast-noenabled-gitAUR, mpv-thumbfast-gitAUR) (optional) – for showing thumbnails on-the-fly on seek
Required by (1)
- mpv-thumbfast-git (optional)
Sources (1)
ZhangHua commented on 2024-12-23 04:31 (UTC)
gbr commented on 2024-12-22 17:09 (UTC)
Hello! Can you please not compress the ziggy-linux
binary with upx
?
Sure, UPX compression reduces the binary size from 5.7 MB to 2.4 MB on my x86-64 machine, but at the same time, it almost doubles start up time:
$ cp /usr/share/mpv/scripts/uosc/bin/ziggy-linux ~/ziggy-upx
$ upx -d /usr/share/mpv/scripts/uosc/bin/ziggy-linux -o ~/ziggy-no-upx
$ hyperfine --warmup 3 -N -i ~/ziggy-upx ~/ziggy-no-upx
Benchmark 1: /home/me/ziggy-upx
Time (mean ± σ): 55.6 ms ± 11.3 ms [User: 48.1 ms, System: 4.4 ms]
Range (min … max): 42.8 ms … 80.4 ms 44 runs
Warning: Ignoring non-zero exit code.
Benchmark 2: /home/me/ziggy-no-upx
Time (mean ± σ): 7.3 ms ± 0.6 ms [User: 1.8 ms, System: 3.4 ms]
Range (min … max): 4.8 ms … 10.8 ms 545 runs
Warning: Ignoring non-zero exit code.
Warning: Statistical outliers were detected. Consider re-running this benchmark on a quiet system without any interferences from other programs. It might help to use the '--warmup' or '--prepare' options.
Summary
/home/me/ziggy-no-upx ran
7.57 ± 1.66 times faster than /home/me/ziggy-upx
ZhangHua commented on 2024-11-11 13:42 (UTC)
@dreieck I have changed PKGBUILD to download depends in prepare()
But this is indeed no need to trigger everyone to rebuild, so I did not bump pkgrel
.
dreieck commented on 2024-11-11 12:36 (UTC)
This PKGBUILD
downloads stuff during build()
.
Please move the go specific download steps inti prepare()
so that build()
can run offline.
==> Starting build()...
go: downloading github.com/atotto/clipboard v0.1.4
[...]
Regards and thanks for the package!
jetm commented on 2024-08-02 15:48 (UTC) (edited on 2024-08-02 15:49 (UTC) by jetm)
Instead of copying the files, using symlinks works. It's required to create three symlinks for /usr/share/mpv/fonts
, /usr/share/mpv/script-opts
, and /usr/share/mpv/scripts/uosc
. Like this:
$HOME/.config/mpv
├── fonts -> /usr/share/mpv/fonts
│ ├── uosc_icons.otf
│ └── uosc_textures.ttf
├── mpv.conf
├── script-opts -> /usr/share/mpv/script-opts
│ └── uosc.conf
└── scripts
└── uosc -> /usr/share/mpv/scripts/uosc
ZhangHua commented on 2024-04-08 07:31 (UTC)
@omeringen See pinned comment for more info. Doing not enable by default is not a mistake. Because I think we should enable it by system admin or user, just like systemd service.
omeringen commented on 2024-04-07 18:07 (UTC) (edited on 2024-04-08 05:06 (UTC) by omeringen)
MPV doesn't load script. uosc-git AUR package doesn't need manual intervention to load the script. Something wrong here i guess because install dirs on PKGBUILD's between this and git package are so different.
ZhangHua commented on 2024-02-12 06:29 (UTC)
@Aftermath I have changed the license to LGPL-2.1-or-later
, thanks for your advising!
Aftermath commented on 2024-02-11 10:50 (UTC)
Thanks for maintaining this package. uosc is under LGPL-2.1-or-later licence!
Pinned Comments
ZhangHua commented on 2023-11-09 13:34 (UTC)
@insatiable_kin You need to create link or copy files in
/usr/share/mpv
to$HOME/.config/mpv
to let mpv load it automatically. Or you have to call mpv with argument--script=/usr/share/mpv/scripts/uosc
to load this script.