app-misc/spicetify-cli: add 2.36.2

Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2024-04-02 14:01:52 +03:00
parent d7438e6637
commit d2ea13f09a
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.0-deps.tar.xz 5206944 BLAKE2B ce5132e5c1ba1506838d0852b7
DIST spicetify-cli-2.36.0.tar.gz 2015804 BLAKE2B b135539ca626cb56dc1d27773ed3892dadf960dff5feab08f62804b060aacf5f005381d036b2afd0232a9f6e7aa728a31ae138aaef431d81e019a387d0de30d3 SHA512 accd48f18b9a2936ca3ba3b69aa173c8cfdc380314b4873e629ebc83173dbf6edf2ca756873ccf9c4bb68b9b4ecca4b2bdbb925eda6aef58b5768f78e11c88ba DIST spicetify-cli-2.36.0.tar.gz 2015804 BLAKE2B b135539ca626cb56dc1d27773ed3892dadf960dff5feab08f62804b060aacf5f005381d036b2afd0232a9f6e7aa728a31ae138aaef431d81e019a387d0de30d3 SHA512 accd48f18b9a2936ca3ba3b69aa173c8cfdc380314b4873e629ebc83173dbf6edf2ca756873ccf9c4bb68b9b4ecca4b2bdbb925eda6aef58b5768f78e11c88ba
DIST spicetify-cli-2.36.1-deps.tar.xz 5206316 BLAKE2B 6af9c2d6f8da07b9dda88775dc98a37d034a66a92144843e709177ab5fc2d5883a66ff2b7a32c7db37366627156843288304dc2cf0ade9b509655c09c1e8f430 SHA512 637bc650a333f68e5bf217dc082d19a17b6d9cd4412f2736dc2be04d0dce146f3cd6854c0e4612cdb45cd921f8c196950e79fb5268cb370cecb0f1572f64f7a5 DIST spicetify-cli-2.36.1-deps.tar.xz 5206316 BLAKE2B 6af9c2d6f8da07b9dda88775dc98a37d034a66a92144843e709177ab5fc2d5883a66ff2b7a32c7db37366627156843288304dc2cf0ade9b509655c09c1e8f430 SHA512 637bc650a333f68e5bf217dc082d19a17b6d9cd4412f2736dc2be04d0dce146f3cd6854c0e4612cdb45cd921f8c196950e79fb5268cb370cecb0f1572f64f7a5
DIST spicetify-cli-2.36.1.tar.gz 2016468 BLAKE2B 3369dabfe087402b8f5f16622934e95d76c6635673f5573a856528e6b6d09d34849c8c1fc7a2d706df3dbb7932054e865711fc2eae88368c8f53391dd8ef2cc8 SHA512 58f6bfbd9db614ef7112e166b623cee3a7f8e9f1987191907237c3f3a097f2cdf125a85db9fb14ac0ae270bb4ebc1cc7db4ebbb153bab72c555eb8fe919a33d0 DIST spicetify-cli-2.36.1.tar.gz 2016468 BLAKE2B 3369dabfe087402b8f5f16622934e95d76c6635673f5573a856528e6b6d09d34849c8c1fc7a2d706df3dbb7932054e865711fc2eae88368c8f53391dd8ef2cc8 SHA512 58f6bfbd9db614ef7112e166b623cee3a7f8e9f1987191907237c3f3a097f2cdf125a85db9fb14ac0ae270bb4ebc1cc7db4ebbb153bab72c555eb8fe919a33d0
DIST spicetify-cli-2.36.2-deps.tar.xz 5205504 BLAKE2B cd9c42460feee3c9ff73239ee1f6fa272719700123e024e6fb74e9083768a7518ef079bef410143a39e084a23df7919907272de3ea53cd4c18154a1e9a489b68 SHA512 559aa76dd1d8a1adb3d6fe8d67c1e0bd6b81ce4f6bc63a29a648b4494f95ec667ab655ee707e1e8057a14ed8e8e2e1db9ef5b38fee9dafcf7517b5d085ce64f3
DIST spicetify-cli-2.36.2.tar.gz 2016294 BLAKE2B 4e0baad39388d579d6180338c5b4322ff8b85c6f005e8c9717adf7d2bf153f05de170823b3ef07e49e438cab23bfe6e21ad7bfb7cd45e0aea822d0b244547b89 SHA512 49c91fd54c0179e92321038524fcf568d1b55adc024f1c680ab5de28c5de6a14b40ac993c44eb251b8881fbc33fc13b90ea68331b584a17da4ea063783cca920

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.34"
)
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
}