* [gentoo-commits] repo/proj/guru:dev commit in: media-sound/spotube-bin/
@ 2024-08-12 20:56 Aiden Wingard
0 siblings, 0 replies; only message in thread
From: Aiden Wingard @ 2024-08-12 20:56 UTC (permalink / raw
To: gentoo-commits
commit: 1ebc9f202d2fcd29af4deab021f3484c526293ae
Author: kernaltrap <kernaltrap <AT> gmail <DOT> com>
AuthorDate: Mon Aug 12 20:56:01 2024 +0000
Commit: Aiden Wingard <kernaltrap <AT> gmail <DOT> com>
CommitDate: Mon Aug 12 20:56:01 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1ebc9f20
media-sound/spotube-bin: fix libappindicator issues
Signed-off-by: kernaltrap <kernaltrap <AT> gmail.com>
media-sound/spotube-bin/spotube-bin-3.8.0.ebuild | 39 ++++++++++++++++--------
1 file changed, 27 insertions(+), 12 deletions(-)
diff --git a/media-sound/spotube-bin/spotube-bin-3.8.0.ebuild b/media-sound/spotube-bin/spotube-bin-3.8.0.ebuild
index 2f05d74df..4bf2ee6a9 100644
--- a/media-sound/spotube-bin/spotube-bin-3.8.0.ebuild
+++ b/media-sound/spotube-bin/spotube-bin-3.8.0.ebuild
@@ -3,34 +3,49 @@
EAPI=8
-inherit desktop xdg
+MY_PN="spotube"
-MyPN="spotube"
+inherit desktop xdg
DESCRIPTION="An open source, cross-platform Spotify client"
HOMEPAGE="https://spotube.krtirtho.dev/"
-RDEPEND="
- >=media-video/mpv-0.38.0-r1
+SRC_URI="
+ https://github.com/KRTirtho/${MY_PN}/releases/download/v${PV}/${MY_PN}-linux-${PV}-x86_64.tar.xz
+ -> ${P}.tar.xz
"
+S="${WORKDIR}"
-SRC_URI="https://github.com/KRTirtho/${MyPN}/releases/download/v${PV}/${MyPN}-linux-${PV}-x86_64.tar.xz -> ${P}.tar.xz"
-S="${WORKDIR}/"
-LICENSE="BSD"
-
+LICENSE="BSD-4"
SLOT="0"
+
KEYWORDS="~amd64"
+BDEPEND="
+ dev-util/patchelf
+"
+RDEPEND="
+ >=media-video/mpv-0.38.0-r1
+ >=dev-libs/libayatana-appindicator-0.5.92
+"
+
src_prepare() {
default
- sed -i '/\//s/Icon=\/usr\/share\/icons\/spotube\/spotube-logo.png/Icon=\/usr\/share\/pixmaps\/spotube-logo.png/' spotube.desktop
+
+ sed -i '/^Icon=/s|=.*|=spotube-logo|' spotube.desktop || die
}
src_install() {
insinto /opt/spotube
- doins -r data lib spotube
- fperms 775 /opt/spotube/spotube
+ doins -r data lib
+
+ exeinto /opt/spotube
+ doexe spotube
domenu spotube.desktop
doicon spotube-logo.png
- dosym /opt/spotube/spotube /usr/bin/spotube
+
+ dodir /usr/bin
+ dosym -r /opt/spotube/spotube /usr/bin/spotube
+
+ patchelf --replace-needed "libappindicator3.so.1" "libayatana-appindicator3.so.1" "${ED}/opt/spotube/lib/libtray_manager_plugin.so" || die
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-08-12 20:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-12 20:56 [gentoo-commits] repo/proj/guru:dev commit in: media-sound/spotube-bin/ Aiden Wingard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox