media-sound/tidal-hifi-bin: add 6.3.1

Signed-off-by: Willem Grant <willemgrant@mailfence.com>
This commit is contained in:
Willem Grant
2026-03-28 20:00:19 -04:00
parent b3f4624985
commit 55335cbd50
2 changed files with 121 additions and 0 deletions

View File

@@ -3,3 +3,4 @@ DIST tidal-hifi-bin-5.17.0.tar.gz 114278717 BLAKE2B 9824f67dbef9abb02a3f55bb127f
DIST tidal-hifi-bin-6.1.0.tar.gz 127875840 BLAKE2B 8fa813868ac563d7137b12c4918118215a53b84236888fa9c2f4467e57d47a8c315e24bab312e8e75232a5623a57b20f98a2db08ca14485f310d1637dae4263c SHA512 82f054e7c62651416de7984a2aa2b60c01a3441965bb10a0e0cc8ecfe383e49d02360a4224568788af33c1e45de0f3d68906cfa6bb2b336436d6c52cc7d15790
DIST tidal-hifi-bin-6.2.0.tar.gz 129113269 BLAKE2B 98f565b55c48cb5d91e79ccb4ef2e36eb3620647380001151b9d611275b1d6bd368e783754795d9e30220012c25f2c26f6714cac4f77e71bdb4805585a921657 SHA512 77a5c9cfafc315bbbe634082538c8c665b9181c9af388ebc5823133e7d6eb93de3fb133bde0fdc1b4780d139e8a441ee988f783320fb01036b1dc3b50d60c796
DIST tidal-hifi-bin-6.3.0.tar.gz 128628334 BLAKE2B ed3b3651d59d84b723b7c16b5c323afe7ef5e50b252af7c761a8f2310ff203647dcfd79f115e3dd3cda0ff446e044798cce09f2127126f8dec30c4733044243f SHA512 e48ed5f5fb1b06b92798bdaa4058842967e6f370656065b425291e7ddc3b6f088a1a64fd06b40e7b7427ee6b1c359bd036939c0d099937ab706c2e4dd48debfd
DIST tidal-hifi-bin-6.3.1.tar.gz 129318147 BLAKE2B 87753864ce6cdd7a582348801d7a3fbc7b28565ab489ccd5beac72c4acc6469e0ca230e9efdaebf566855009155ea8cea0bcf29ed60d0064402e8730207ed417 SHA512 a486797781fb32a3190cf02a996dfc74645513842d89cf19eaaa15637022621a3e8df004dca54e41aff4602b466f4749defa2609c22d3dfffbc050b0fbd2b31e

View File

@@ -0,0 +1,120 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# This ebuild is dedicated to Mavy, the late niece of tidal-hifi's maintainer. (Mastermindzh)
# It was going to be named with the codename as well, however that sadly would have broken ebuild fetching (PV)
# If you are reading this, thank you. <3
EAPI=8
MY_PN="${PN/-bin/}"
CHROMIUM_LANGS="
af am ar bg bn ca cs da de el en-GB en-US es es-419 et fa fi fil fr gu he hi
hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr sv
sw ta te th tr uk ur vi zh-CN zh-TW
"
inherit chromium-2 desktop linux-info unpacker xdg
DESCRIPTION="Web version of Tidal running in electron with Hi-Fi support thanks to Widevine."
HOMEPAGE="https://github.com/Mastermindzh/tidal-hifi"
SRC_URI="https://github.com/Mastermindzh/tidal-hifi/releases/download/${PV}-Mavy/tidal-hifi-${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${MY_PN}-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="wayland"
RDEPEND="
>=app-accessibility/at-spi2-core-2.46.0:2
dev-libs/expat
dev-libs/glib:2
dev-libs/libgcrypt
dev-libs/nspr
dev-libs/nss
media-libs/alsa-lib
media-libs/fontconfig
media-libs/mesa[gbm(+)]
net-print/cups
sys-apps/dbus
sys-apps/util-linux
sys-libs/glibc
x11-libs/cairo
x11-libs/libdrm
x11-libs/gdk-pixbuf:2
x11-libs/gtk+:3
x11-libs/libX11
x11-libs/libXScrnSaver
x11-libs/libXcomposite
x11-libs/libXdamage
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libXrandr
x11-libs/libxcb
x11-libs/libxkbcommon
x11-libs/libxshmfence
x11-libs/pango
"
DESTDIR="/opt/${PN}"
QA_PREBUILT="*"
CONFIG_CHECK="~USER_NS"
src_configure() {
default
chromium_suid_sandbox_check_kernel_config
}
src_prepare() {
default
# cleanup languages
pushd "locales/" >/dev/null || die "location change for language cleanup failed"
chromium_remove_language_paks
popd >/dev/null || die "location reset for language cleanup failed"
rm -rf "${S}"/resources/app.asar.unpacked/node_modules/{abstract-socket,register-scheme}/build/node_gyp_bins || die
}
src_install() {
doicon -s 256 "${FILESDIR}/${MY_PN}.png"
local EXEC_EXTRA_FLAGS=()
if use wayland; then
EXEC_EXTRA_FLAGS+=( "--ozone-platform-hint=auto" )
fi
sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \
"${FILESDIR}/tidal-hifi.desktop" \
> "${T}/tidal-hifi.desktop" || die
domenu "${T}/tidal-hifi.desktop"
exeinto "${DESTDIR}"
doexe "${MY_PN}" chrome-sandbox libEGL.so libffmpeg.so libGLESv2.so libvk_swiftshader.so
insinto "${DESTDIR}"
doins chrome_100_percent.pak chrome_200_percent.pak icudtl.dat resources.pak snapshot_blob.bin v8_context_snapshot.bin
insopts -m0755
doins -r locales resources
# Chrome-sandbox requires the setuid bit to be specifically set.
# see https://github.com/electron/electron/issues/17972
fowners root "${DESTDIR}/chrome-sandbox"
fperms 4711 "${DESTDIR}/chrome-sandbox"
[[ -x chrome_crashpad_handler ]] && doins chrome_crashpad_handler
dosym -r "${DESTDIR}/${MY_PN}" "/usr/bin/${MY_PN}"
}
pkg_postinst() {
xdg_pkg_postinst
elog "As with this version's codename, (6.3.1-mavy) this ebuild is dedicated to Mavy,"
elog "the late niece of tidal-hifi's maintainer. (Mastermindzh)"
elog "If you are reading this, thank you. <3"
}