app-misc/spicetify-cli: add 2.36.9

Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2024-04-30 23:07:26 +03:00
parent 7a69f1d518
commit 50878b68fa
No known key found for this signature in database
GPG Key ID: A12750536B5E7010
2 changed files with 101 additions and 0 deletions

View File

@ -2,3 +2,5 @@ DIST spicetify-cli-2.36.6-deps.tar.xz 5224416 BLAKE2B 37965a64e57ccdfbc7e4df3d15
DIST spicetify-cli-2.36.6.tar.gz 2017028 BLAKE2B 4b4e2d564e6ad6e2ee2bdeef34101d91b6aa5d9afcb4242ddf9c1af9752d21bc477330ce63270ece34ea62c0894c02905e822be77d6b2dbee0f7f575cdc1a44c SHA512 6a743dbe309b8300ac0ab3e80524dcdeaba54309f5544ffefaaef2bdd91f2f74790bb64863cf806fbb2c5dc7025cfae3b5c879cfcf5c5b764511b9c3e8b7ccc8
DIST spicetify-cli-2.36.8-deps.tar.xz 5224540 BLAKE2B 0d21bdb32df7c5bdb4402c95071574873693c84dce99ca1c82d45462b4b000b8634f9aac339e118cfc52642b2d9377000c8ec15ffc891f26c50e48377bac301c SHA512 1af6850c11433579a8ec0d25430538fafe89f304aed8fcd1c0ea32162708efeaf1eb62f76be5f228fbe68c59ff7671ec41106c68a786aae7f7bab23b9c081d6d
DIST spicetify-cli-2.36.8.tar.gz 2018184 BLAKE2B 18b1e2708ed83d75181be0f3ffd168def5032b8c0cfeb9978a9ac50366ee3cff7f2598984468cda3f0ae747718c282509a0ce82255990e1df2bf83fa4e74b6c3 SHA512 601c319c251a175a71cea6e947dce37d0bdec5bfb9d06415a23657f880b462f5a2867d51432874973403aea2f5f09f996ff6416c4651aa4275524b3de847103b
DIST spicetify-cli-2.36.9-deps.tar.xz 5224876 BLAKE2B ea51394a620fb64091ac552484698d35497365793417f281e8dba3950f0605c563850e61b48ca4cd2e99d2d1b1504372de094bfc416dd65f3cea9a009847ef78 SHA512 614dab1e006f4f532588e62d0e196e43956c04bc304098a86f2ea4a668a6644ab4779ee95af95fff10bf978b3651646f75a2a2a8db29574e7de7ec2e8a1b06ed
DIST spicetify-cli-2.36.9.tar.gz 2018140 BLAKE2B a2d8000887bba1971ef2b278cf6d21a3c2d4f2a98be42b13b1c55b0d49ee6cab242ff28f730ff3226d0608bb4370ab3f8efc9b9be200c31e8bbd3070615fc968 SHA512 981f2d0d8764e2da63a1c05bbd700e42b4168d47fad973498260929b8d653eacb8c93cf8b451f6c06d645f68d346af0ce59259fc44998ad76454ac6d423de0e2

View File

@ -0,0 +1,99 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
WHITELIST_VERSIONS=(
"<> 1.2.8 1.2.36"
)
whitelist_versions() {
local version_spec version1 version2
local -a deps
SPOTIFY_VERSIONS=
# Iterate in reverse for elog
for ((index = $(( ${#WHITELIST_VERSIONS[@]} - 1 )); index >= 0; index--)); do
read -r version_spec version1 version2 <<< "${WHITELIST_VERSIONS[${index}]}"
case ${version_spec} in
"<>")
deps[$index]="( <=media-sound/spotify-${version2} >=media-sound/spotify-${version1} )"
SPOTIFY_VERSIONS+="${version1} -> ${version2}"
;;
"~")
deps[$index]="~media-sound/spotify-${version1}"
SPOTIFY_VERSIONS+="${version1}"
;;
*)
die "Invalid version specifier in WHITELIST_VERSIONS"
;;
esac
if [[ ${index} == 0 ]]; then
SPOTIFY_VERSIONS+=". "
elif [[ ${index} == 1 ]]; then
SPOTIFY_VERSIONS+=" and "
else
SPOTIFY_VERSIONS+=", "
fi
done
RDEPEND=" || ( ${deps[@]} )"
}
whitelist_versions
DESCRIPTION="Commandline tool to customize Spotify client."
HOMEPAGE="https://spicetify.app/"
SRC_URI="
https://github.com/spicetify/spicetify-cli/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://gitlab.com/api/v4/projects/37881342/packages/generic/${PN}/${PV}/${P}-deps.tar.xz
"
LICENSE="Apache-2.0 BSD LGPL-2.1 MIT"
SLOT="0"
KEYWORDS="~amd64"
# no tests
RESTRICT="test"
INSTALLDIR="/opt/${PN}"
src_compile() {
ego build -ldflags "-X main.version=${PV}"
}
src_install() {
insinto "${INSTALLDIR}"
doins -r {CustomApps,Extensions,Themes,jsHelper,spicetify-cli}
dobin "${FILESDIR}/spicetify"
fperms +x "${INSTALLDIR}/spicetify-cli"
}
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 /opt/spotify/spotify-client"
elog "# chmod a+wr /opt/spotify/spotify-client/Apps -R"
elog ""
elog "WARNING: Do not run spicetify as root please"
elog ""
elog "Spicetify compatibility is limited to the following Spotify versions:"
elog " ${SPOTIFY_VERSIONS}"
elog ""
elog "Otherwise you can install spotify to a user modifiable location like as a flatpak:"
elog " https://spicetify.app/docs/advanced-usage/installation#spotify-installed-from-flatpak"
elog ""
elog "To install themes see:"
elog " https://spicetify.app/docs/advanced-usage/themes"
if $(has_version -r ">=media-sound/spotify-1.2.25"); then
elog ""
elog "The New Releases custom app no longer works with Spotify 1.2.25 and higher. As an alternative,"
elog "please use What's New which was created by Spotify and can be enabled via Experimental Features"
elog "if it isn't already enabled."
fi
}