media-sound/spotube-bin - 5.1.1 (gentoo-zh)

Search

Package Information

Description:
A lightweight Spotify client using YouTube as audio source
Homepage:
https://github.com/KRTirtho/spotube
License:
GPL-3

Ebuild Details

Version EAPI Keywords Slot
5.1.1 8 ~amd64 0
View Raw Ebuild
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit desktop xdg
DESCRIPTION="A lightweight Spotify client using YouTube as audio source"
HOMEPAGE="https://github.com/KRTirtho/spotube"
SRC_URI="https://github.com/KRTirtho/spotube/releases/download/v${PV}/spotube-linux-${PV}-x86_64.tar.xz"

S="${WORKDIR}"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"

BDEPEND="
		dev-util/patchelf
"
RDEPEND="
		dev-libs/libayatana-appindicator
		media-video/mpv
		net-libs/libsoup:3.0
		net-libs/webkit-gtk:4.1
		x11-libs/libnotify
"

RESTRICT="strip"

src_install() {
	insinto /opt/spotube/
	doins -r data lib
	exeinto /opt/spotube
	doexe spotube
	dosym -r /opt/spotube/spotube /usr/bin/spotube
	doins "${S}/spotube-logo.png"
	sed -i -e 's|^Exec=.*|Exec=/opt/spotube/spotube|' \
		-i -e 's|^Icon=.*|Icon=/opt/spotube/spotube-logo.png|' \
		"${S}"/spotube.desktop || die
	for i in 16 32 64 128 256; do
	    doicon -s "$i" "${S}"/spotube-logo.png
	done
	domenu "${S}/spotube.desktop"
	patchelf --replace-needed "libappindicator3.so.1" "libayatana-appindicator3.so.1" \
	"${ED}/opt/spotube/lib/libtray_manager_plugin.so" || die
}

Dependencies

RDEPEND

		dev-libs/libayatana-appindicator
		media-video/mpv
		net-libs/libsoup:3.0
		net-libs/webkit-gtk:4.1
		x11-libs/libnotify

BDEPEND

		dev-util/patchelf

Manifest for 5.1.1

Type File Size Source URLs
DIST spotube-linux-5.1.1-x86_64.tar.xz 35220208 bytes https://github.com/KRTirtho/spotube/releases/download/v5.1.1/spotube-linux-5.1.1-x86_64.tar.xz