linamh/media-sound/spotify-tray/spotify-tray-1.3.2-r2.ebuild
Mario Fetka 9768c28148 media-sound/spotify-tray: update metadata
Package-Manager: Portage-3.0.30, Repoman-3.0.3
2022-04-05 11:34:27 +02:00

38 lines
883 B
Bash

# Copyright 2019-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
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
# Fix error: AM_INIT_AUTOMAKE expanded multiple times
sed -i -e '/^AM_INIT_AUTOMAKE$/d' configure.ac || die
# Fix the name of the icon
sed -i -e 's/Icon=spotify/Icon=spotify-client/g' spotify-tray.desktop.in || die
eautoreconf
}
src_install() {
default
# remove desktop file, launching is handled in spotify ebuild
#rm "${ED}/usr/share/applications/spotify-tray.desktop" || die
}