mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-10 20:18:41 -04:00
media-sound/spotube-bin: fix libappindicator issues
Signed-off-by: kernaltrap <kernaltrap@gmail.com>
This commit is contained in:
parent
02935dc58e
commit
1ebc9f202d
@ -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/"
|
||||
|
||||
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}"
|
||||
|
||||
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_URI="https://github.com/KRTirtho/${MyPN}/releases/download/v${PV}/${MyPN}-linux-${PV}-x86_64.tar.xz -> ${P}.tar.xz"
|
||||
S="${WORKDIR}/"
|
||||
LICENSE="BSD"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user