47 lines
1.1 KiB
Bash
47 lines
1.1 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DESCRIPTION="Commandline tool to customize Spotify client."
|
|
HOMEPAGE="https://spicetify.app/"
|
|
SRC_URI="
|
|
https://github.com/spicetify/cli/releases/download/v${PV}/spicetify-${PV}-linux-amd64.tar.gz -> ${P}.tar.gz
|
|
"
|
|
|
|
LICENSE="Apache-2.0 BSD LGPL-2.1 MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
S="${WORKDIR}"
|
|
INSTALLDIR="/opt/spicetify-cli"
|
|
IUSE="
|
|
marketplace
|
|
community-themes
|
|
"
|
|
|
|
DEPEND="
|
|
!app-misc/spicetify-cli
|
|
"
|
|
PDEPEND="
|
|
marketplace? ( app-misc/spicetify-marketplace-bin )
|
|
community-themes? ( app-misc/spicetify-community-themes )
|
|
"
|
|
RDEPEND="
|
|
>=media-sound/spotify-1.2.14
|
|
<=media-sound/spotify-1.2.53
|
|
"
|
|
|
|
src_install() {
|
|
insinto "${INSTALLDIR}"
|
|
doins -r {css-map.json,CustomApps,Extensions,globals.d.ts,jsHelper,Themes,spicetify}
|
|
dobin ${FILESDIR}/spicetify
|
|
fperms +x "${INSTALLDIR}/spicetify"
|
|
}
|
|
|
|
pkg_postinst() {
|
|
elog "Spicetify requires a Spotify install that it can modify."
|
|
elog "To give read and write permissions to everyone on the system to run the following commands as root."
|
|
elog "# chmod a+wr -R /opt/spotify"
|
|
}
|