media-sound/youtube-music-bin: new package, add 3.3.6

Signed-off-by: Maël GUERIN <mael.guerin@murena.io>
Closes: https://github.com/gentoo/guru/pull/179
Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
Maël GUERIN 2024-05-03 13:32:58 +02:00 committed by David Roman
parent 567d1d2844
commit 5563ce3a27
No known key found for this signature in database
GPG Key ID: D7475BA08F7705F5
3 changed files with 75 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST youtube-music_3.3.6_amd64.deb 80748958 BLAKE2B 3b1188aa331b3940032a2c87dd026dab5d29508dac04b767887b278713b596e72b5e6669c4cb6e332aea4934afd5b416d6b820bbd84ffa4f921a2760f7011ad6 SHA512 7fc6d0c4af336a58ce20218e5c97d04551e18dc1e9af226cf23cb482589efe8abf357dd0f1a9fb58fbfa6538148c5b1a76ff35f5c68dbd8e8f01afcdbd1f0b88

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<name>Maël GUERIN</name>
<email>mael.guerin@murena.io</email>
</maintainer>
<upstream>
<remote-id type="github">th-ch/youtube-music</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,63 @@
# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit unpacker desktop xdg
MY_PN="${PN/-bin/}"
DESCRIPTION="YouTube Music Desktop App bundled with custom plugins"
HOMEPAGE="https://th-ch.github.io/youtube-music/"
SRC_URI="https://github.com/th-ch/youtube-music/releases/download/v${PV}/${MY_PN}_${PV}_amd64.deb"
LICENSE="MIT"
SLOT="0"
KEYWORDS="-* ~amd64"
S="${WORKDIR}"
RDEPEND="
app-accessibility/at-spi2-core:2
app-crypt/libsecret
dev-libs/nss
x11-misc/xdg-utils
x11-libs/gtk+:3
x11-libs/libnotify
x11-libs/libXtst
"
RESTRICT="mirror strip"
QA_PREBUILT="
opt/${MY_PN}/chrome-sandbox
opt/${MY_PN}/chrome_crashpad_handler
opt/${MY_PN}/libEGL.so
opt/${MY_PN}/libffmpeg.so
opt/${MY_PN}/libGLESv2.so
opt/${MY_PN}/libvk_swiftshader.so
opt/${MY_PN}/libvulkan.so.1
opt/${MY_PN}/${MY_PN}
"
src_prepare() {
default
sed -i 's/\/opt\/YouTube Music/\/opt\/'${MY_PN}'/' usr/share/applications/"${MY_PN}".desktop || die
}
src_install() {
insinto /opt/"${MY_PN}"
doins -r opt/"YouTube Music"/*
insinto /usr/share
doins -r usr/share/icons
domenu usr/share/applications/"${MY_PN}".desktop
local f
for f in ${QA_PREBUILT}; do
fperms +x "/${f}"
done
fperms u+s /opt/"${MY_PN}"/chrome-sandbox
}