app-misc/spicetify-cli: add 2.32.1
Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
parent
3d4110041f
commit
1ddf67204d
@ -2,3 +2,5 @@ DIST spicetify-cli-2.31.2-deps.tar.xz 5178132 BLAKE2B 38adc049908a42b9fa6c184515
|
|||||||
DIST spicetify-cli-2.31.2.tar.gz 2012719 BLAKE2B 71157f1357e3682de5171a301b53677e48cc1df3a15a75a59200115b02c1bc48042b1e4fcc0157918d0e620db925d0d9ee5a9cee90db2e434e3dfb5ed825744f SHA512 daf30f01eefc8c64fef156cf941d61f77ce3a9ed53d7e9dd2af52a042d51c2d95d4022737e076483eeb2c31116fd488d700bd41980b68674f474cd677e96abe9
|
DIST spicetify-cli-2.31.2.tar.gz 2012719 BLAKE2B 71157f1357e3682de5171a301b53677e48cc1df3a15a75a59200115b02c1bc48042b1e4fcc0157918d0e620db925d0d9ee5a9cee90db2e434e3dfb5ed825744f SHA512 daf30f01eefc8c64fef156cf941d61f77ce3a9ed53d7e9dd2af52a042d51c2d95d4022737e076483eeb2c31116fd488d700bd41980b68674f474cd677e96abe9
|
||||||
DIST spicetify-cli-2.31.3-deps.tar.xz 5177320 BLAKE2B 5646b90221c2f34664b3a8b81e0c2f2f92c6d9fdd98ea2b70a94a04612d205a3b5f5854fab3483431529375362fbf73dd36a504fb5fa56500ade635659b5d5c2 SHA512 981158053faa156d81acdc10de3d1be7b43feef691310863ab7ec6bb5ac987be8d9586e726d47d24dabeb0fc190258b0630d904090d881a0c57b60d1a924d007
|
DIST spicetify-cli-2.31.3-deps.tar.xz 5177320 BLAKE2B 5646b90221c2f34664b3a8b81e0c2f2f92c6d9fdd98ea2b70a94a04612d205a3b5f5854fab3483431529375362fbf73dd36a504fb5fa56500ade635659b5d5c2 SHA512 981158053faa156d81acdc10de3d1be7b43feef691310863ab7ec6bb5ac987be8d9586e726d47d24dabeb0fc190258b0630d904090d881a0c57b60d1a924d007
|
||||||
DIST spicetify-cli-2.31.3.tar.gz 2012826 BLAKE2B 34b1fafac7c4c6bc36e8b4704093ba925529590c84228f272b6ae43a238bec317f1d7cc69cf62442e575126283d6bcf99c6c195d83d206ba3d81c9287ae5fcaf SHA512 7430df8afb01536530428381ba387c9b56f9bcfad3f54d8f492ad035c3ebfd38b0657cb889232b870700071c11b801fda424faf9e05882d12e2d56be7372f914
|
DIST spicetify-cli-2.31.3.tar.gz 2012826 BLAKE2B 34b1fafac7c4c6bc36e8b4704093ba925529590c84228f272b6ae43a238bec317f1d7cc69cf62442e575126283d6bcf99c6c195d83d206ba3d81c9287ae5fcaf SHA512 7430df8afb01536530428381ba387c9b56f9bcfad3f54d8f492ad035c3ebfd38b0657cb889232b870700071c11b801fda424faf9e05882d12e2d56be7372f914
|
||||||
|
DIST spicetify-cli-2.32.1-deps.tar.xz 5177652 BLAKE2B c4cdef807994bb790aea0d93d1ffd916bc8a19efe76ab7ce58014b51a4c67f6ba273ccb0568d616c01867d58d99b403ffcdf2d5142248b766814df1461ed8c27 SHA512 d229d883e0469cacaa220fc7529be3ca842784d438e17783a0b1fa16a3e207879e86c0e522ada5b77fcafe8f7409230fec7485148feeef55aafb1347bf036e17
|
||||||
|
DIST spicetify-cli-2.32.1.tar.gz 2013739 BLAKE2B acd6508fd3fca794c9ba78a94811d0c32d2d5df1e3c2c4e293eaec6736cd73b843172641fd177a4c9f40af579c7c00cb8a3581f0ce633660a3e0ced12176b2fc SHA512 202a8e6ecb988beca89c49af8d1e95dec4b84de9718dd7d5fbf16498fb9b7b34113a20e4448f4a0e97dff819de7dbfb8b39ab43ebbc950ad12ae23290771f64f
|
||||||
|
99
app-misc/spicetify-cli/spicetify-cli-2.32.1.ebuild
Normal file
99
app-misc/spicetify-cli/spicetify-cli-2.32.1.ebuild
Normal 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.31"
|
||||||
|
)
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user