diff --git a/app-misc/spicetify-cli/Manifest b/app-misc/spicetify-cli/Manifest index 8135b55..a41ba92 100644 --- a/app-misc/spicetify-cli/Manifest +++ b/app-misc/spicetify-cli/Manifest @@ -2,3 +2,5 @@ DIST spicetify-cli-2.34.1-deps.tar.xz 5205568 BLAKE2B e4810d4d0486a853362d3f4937 DIST spicetify-cli-2.34.1.tar.gz 2011655 BLAKE2B c1426abdd387aaac0990004b18c535cfde08bc6fc5b505a41b9991cb27afbbf8fd3174cdb9a8a73ee820c6b137b99c9d70011a25af399befc81ce9facd4786c0 SHA512 4679b37e23d858de343f708726b9696f03eecf8030ce8b784019f7c2b87175deece5dd5ee928173573de13d324860896b7b2154b5cd2ae5180519daebee27416 DIST spicetify-cli-2.35.1-deps.tar.xz 5206684 BLAKE2B 7f08d9039d6e7f858d3dfd8c8da615b7e6b7bc0b58faa99f3708303a7f1d34b196270907834b0d5604340f4bea2178379d581602196df12f54c873a3329b6bad SHA512 3c43f43c67f990b2c0be9bccfb7de986b5a0e965c5f9d4e1ae47c994cee16d650c11e405ef6fc3f7283dd4f7e1f71928661859339cab43e6b7dcb933aeebb848 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 diff --git a/app-misc/spicetify-cli/spicetify-cli-2.36.0.ebuild b/app-misc/spicetify-cli/spicetify-cli-2.36.0.ebuild new file mode 100644 index 0000000..ca3d428 --- /dev/null +++ b/app-misc/spicetify-cli/spicetify-cli-2.36.0.ebuild @@ -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 +}