New Containerized Package: youtube-music-bin-musl-1.20.0_1

This commit is contained in:
KF-Art 2023-05-26 19:21:58 -04:00
parent c2d2f06b86
commit a9361a456d
16 changed files with 91 additions and 0 deletions

View file

@ -0,0 +1,25 @@
# INSTALL
# youtube-music-bin setup script for Cereus/Void Musl
case "$ACTION" in
post)
if [ "$UPDATE" = "yes" ]; then
xchroot /glibc xbps-install -Syu youtube-music-bin
# Ensure that xchroot has unmounted all binds
umount -R "glibc/dev" "glibc/etc/resolv.conf" "glibc/proc" "glibc/sys"
else
# Enter via chroot to container and install librewolf-bin
# This is necessary, because through voidnsrun it will not install automatically its dependencies, as the host already has them.
xchroot /glibc xbps-install -Syf youtube-music-bin
# Install fonts and dependencies
xchroot /glibc xbps-install -y freetype fontconfig libXft xorg-fonts fonts-roboto-ttf Graphite-gtk-theme-black
# Ensure that xchroot has unmounted all binds
umount -R "glibc/dev" "glibc/etc/resolv.conf" "glibc/proc" "glibc/sys"
fi
;;
esac

View file

@ -0,0 +1 @@
youtube-music-bin has succesfully been installed in glibc container.

View file

@ -0,0 +1,14 @@
# REMOVE
# youtube-music-bin remove script for Cereus/Void Musl
case "$ACTION" in
post)
if [ "$UPDATE" = "no" ]; then
# Enter via chroot to container and remove youtube-music-bin
xchroot /glibc xbps-remove -Ryfv youtube-music-bin
# Ensure that xchroot has unmounted all binds
umount -R "/glibc/dev" "/glibc/etc/resolv.conf" "/glibc/proc" "/glibc/sys"
fi
;;
esac

View file

@ -0,0 +1 @@
onlyoffice-desktopeditors has succesfully been removed from glibc container.

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 600 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 931 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View file

@ -0,0 +1,9 @@
[Desktop Entry]
Name=YouTube Music
Exec=youtube-music %U
Terminal=false
Type=Application
Icon=youtube-music
StartupWMClass=YouTube Music
Comment=YouTube Music Desktop App - including custom plugins
Categories=AudioVideo;

View file

@ -0,0 +1,12 @@
#!/bin/bash
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
# Allow users to override command-line options
if [[ -f "$XDG_CONFIG_HOME/youtube-music-flags.conf" ]]; then
YOUTUBE_MUSIC_USER_FLAGS="$(cat "$XDG_CONFIG_HOME/youtube-music-flags.conf")"
fi
# Launch
export ELECTRON_IS_DEV=0
exec voidnsrun -r /glibc /glibc/opt/YouTube\ Music/youtube-music $YOUTUBE_MUSIC_USER_FLAGS "$@"

View file

@ -0,0 +1,29 @@
# Template file for 'youtube-music-bin-musl'
pkgname=youtube-music-bin-musl
version=1.20.0
revision=1
repository="cereus-extra"
archs="x86_64-musl"
#conf_files=""
hostmakedepends="awk"
depends="voidnsrun-setup"
short_desc="YouTube Music Desktop App bundled with custom plugins (and built-in ad blocker / downloader) - glibc containerized package"
maintainer="Kevin F. <kevinfigueroart@proton.me"
license="MIT"
homepage="https://th-ch.github.io/youtube-music"
changelog="https://github.com/th-ch/youtube-music/blob/master/changelog.md#v${version/./}"
do_install() {
# Install the script
vbin ${FILESDIR}/${pkgname%-bin-musl}.sh ${pkgname%-bin-musl}
# Copy launcher
vinstall ${FILESDIR}/${pkgname%-bin-musl}.desktop 644 \
usr/share/applications/
# Install the icons
for res in 16 24 32 48 64 128 256 512 1024; do
vinstall ${FILESDIR}/icon-${res}x${res}.png 0644 \
usr/share/icons/hicolor/${res}x${res}/apps/${pkgname%-bin-musl/}.png
done
}