New Containerized Package: youtube-music-bin-musl-1.20.0_1
25
srcpkgs/youtube-music-bin-musl/INSTALL
Normal 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
|
1
srcpkgs/youtube-music-bin-musl/INSTALL.msg
Normal file
|
@ -0,0 +1 @@
|
|||
youtube-music-bin has succesfully been installed in glibc container.
|
14
srcpkgs/youtube-music-bin-musl/REMOVE
Normal 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
|
1
srcpkgs/youtube-music-bin-musl/REMOVE.msg
Normal file
|
@ -0,0 +1 @@
|
|||
onlyoffice-desktopeditors has succesfully been removed from glibc container.
|
BIN
srcpkgs/youtube-music-bin-musl/files/icon-1024x1024.png
Normal file
After Width: | Height: | Size: 59 KiB |
BIN
srcpkgs/youtube-music-bin-musl/files/icon-128x128.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
srcpkgs/youtube-music-bin-musl/files/icon-16x16.png
Normal file
After Width: | Height: | Size: 600 B |
BIN
srcpkgs/youtube-music-bin-musl/files/icon-24x24.png
Normal file
After Width: | Height: | Size: 931 B |
BIN
srcpkgs/youtube-music-bin-musl/files/icon-256x256.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
srcpkgs/youtube-music-bin-musl/files/icon-32x32.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
srcpkgs/youtube-music-bin-musl/files/icon-48x48.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
srcpkgs/youtube-music-bin-musl/files/icon-512x512.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
srcpkgs/youtube-music-bin-musl/files/icon-64x64.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
|
@ -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;
|
12
srcpkgs/youtube-music-bin-musl/files/youtube-music.sh
Normal 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 "$@"
|
29
srcpkgs/youtube-music-bin-musl/template
Normal 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
|
||||
}
|