app-misc/spicetify-cli: add 2.36.1

Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2024-03-30 02:48:21 +02:00
parent cb4fd38f75
commit 89ad253938
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.35.1-deps.tar.xz 5206684 BLAKE2B 7f08d9039d6e7f858d3dfd8c8d
DIST spicetify-cli-2.35.1.tar.gz 2012328 BLAKE2B a9461a62f7925ff1f6a3410e19c1633d5fe90db106d754555cb53b787e31fbf273dbe47284029d1ee1ac0f9cd3c6ddb7c17692c6a786cc96c26f581bbe34a7be SHA512 bf740c1a32b10db4b271479b0ba5219bca0e70c46338610509a9756171af1db57917ea8c25cb1e70ea54d092fe2ee041289f1669ec34e83293f0a5c6934bf441
DIST spicetify-cli-2.36.0-deps.tar.xz 5206944 BLAKE2B ce5132e5c1ba1506838d0852b778b32c88bb4b696873fabbaa1ace8beeae7e58010ee416ed55d2fa51fac6b5adcc82217da3c9312991f733f7d04d6cf383553f SHA512 0927c9a4a02d0030f6a263a8808b5c5d676ef79375d367589b2903f683e29c600d41d74357c3599bc8602cb19cf20773b3391c96273ef4a35f135a47d6909148
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.tar.gz 2016468 BLAKE2B 3369dabfe087402b8f5f16622934e95d76c6635673f5573a856528e6b6d09d34849c8c1fc7a2d706df3dbb7932054e865711fc2eae88368c8f53391dd8ef2cc8 SHA512 58f6bfbd9db614ef7112e166b623cee3a7f8e9f1987191907237c3f3a097f2cdf125a85db9fb14ac0ae270bb4ebc1cc7db4ebbb153bab72c555eb8fe919a33d0

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
}