2021-08-20 15:58:48 +02:00
|
|
|
# Copyright 2019-2021 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2022-02-23 19:17:30 +01:00
|
|
|
EAPI=8
|
2021-08-20 15:58:48 +02:00
|
|
|
|
|
|
|
inherit autotools xdg
|
|
|
|
|
|
|
|
DESCRIPTION="Wrapper around the Spotify client that adds a tray icon"
|
|
|
|
HOMEPAGE="https://github.com/tsmetana/spotify-tray"
|
|
|
|
SRC_URI="https://github.com/tsmetana/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
|
|
|
|
DEPEND="
|
|
|
|
x11-libs/gtk+:3[X]
|
|
|
|
"
|
|
|
|
RDEPEND="${DEPEND}
|
|
|
|
media-sound/spotify
|
|
|
|
"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
default
|
2022-02-23 19:17:30 +01:00
|
|
|
# Fix error: AM_INIT_AUTOMAKE expanded multiple times
|
|
|
|
sed -i -e '/^AM_INIT_AUTOMAKE$/d' configure.ac || die
|
|
|
|
|
2021-08-20 15:58:48 +02:00
|
|
|
# Fix the name of the icon
|
|
|
|
sed -i -e 's/Icon=spotify/Icon=spotify-client/g' spotify-tray.desktop.in || die
|
|
|
|
eautoreconf
|
|
|
|
}
|
2022-02-23 19:17:30 +01:00
|
|
|
|