chore(release): v2.0.0

This commit is contained in:
marwy 2026-11-29 02:28:03 +03:00
parent a6f33284a7
commit 7fbf34ff2e
81 changed files with 16727 additions and 3280 deletions

View file

@ -0,0 +1,60 @@
# Copyright 2026 marwy
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cargo desktop xdg
DESCRIPTION="Native high-performance, ultra-low-RAM Yandex Music desktop client in Rust"
HOMEPAGE="https://git.tatar/marwy/yandex-music-rs"
SRC_URI="https://git.tatar/marwy/yandex-music-rs/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="+webview"
RESTRICT="network-sandbox"
DEPEND="
media-libs/alsa-lib
webview? (
x11-libs/gtk+:3
net-libs/webkit-gtk:4.1
net-libs/libsoup:3.0
)
"
RDEPEND="
${DEPEND}
media-libs/vulkan-loader
media-libs/libglvnd
x11-themes/hicolor-icon-theme
"
BDEPEND="
virtual/pkgconfig
>=virtual/rust-1.80
"
src_compile() {
cargo build --release --bin yandex-music-rs || die
if use webview; then
cargo build --release --features linux-webview --bin yandex-music-auth || die
fi
}
src_install() {
dobin target/release/yandex-music-rs
if use webview; then
dobin target/release/yandex-music-auth
fi
domenu packaging/yandex-music-rs.desktop
insinto /usr/share/metainfo
doins packaging/ru.marwy.YandexMusicRs.metainfo.xml
newicon -s 48 assets/icons/app_48.png yandex-music-rs.png
newicon -s 64 packaging/icons/64x64.png yandex-music-rs.png
newicon -s 128 packaging/icons/128x128.png yandex-music-rs.png
newicon -s 256 packaging/icons/256x256.png yandex-music-rs.png
newicon assets/icons/app_icon.png yandex-music-rs.png
}