app-misc/spicetify-cli: add 2.36.14
Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
parent
006e9cce76
commit
72a96f9eb7
@ -2,3 +2,5 @@ DIST spicetify-cli-2.36.12-deps.tar.xz 5298444 BLAKE2B 3c4e154e600c0c0eba2a89d74
|
||||
DIST spicetify-cli-2.36.12.tar.gz 2019215 BLAKE2B f400f43999816e3c962526332da042c716fdc04d7f7dfe0522371d77cf74dc755e88497d7aeac8ce58005f60a5a303a4955e358d7c5f85b3febb1bf2fba3499b SHA512 53506979040469e5f0b03daddf25e3f3ba3ba1a2adad4d0367e8484d496753ceae470bb929f46c0b52c997cc7f7648c00ab9d23dd851e8da12d209cd938e1b0a
|
||||
DIST spicetify-cli-2.36.13-deps.tar.xz 5203916 BLAKE2B 6563c43cc708a6c7c037f49ea0fc6cf5ff51af3a6073e8ebbdcf91bce4ff6adf62e4b3eaf04122dfc48614ca65a3e3b60adb73a9388e59e7a601dfae8d040aa1 SHA512 658a8d1e127247a51cea1e9284c3d912c035528373cefa52a8369ddbb0de857178481e7aec84f611e40eb4f5b0a9d212bee19135b6855de010ac05b3f1630954
|
||||
DIST spicetify-cli-2.36.13.tar.gz 2020031 BLAKE2B 62b52ddab0e045906b55ec577f0d5d5c29211143c472f4fbe856d6036c41c6807d319a3788ee13c1c25251e853757a229e99a150eb1d01ddd1c7ff0e9e5ed12c SHA512 afac8ef74c40301053203cc3566a6528d034067375d87ccb7415bfaf4ab0b85aec62b4a0932be82aa89ddcc8762e4a72d2a39c0fe746034f06b716f045daea57
|
||||
DIST spicetify-cli-2.36.14-deps.tar.xz 5203804 BLAKE2B 5b430add99572678f452a75f6dea3bf9b7bda51c38679dd502613e613c16931f2cb76f71a2e113df00bfb16df0043fb404f9190b25a136bd3ae74a30969bd82d SHA512 3fed571f03bdc1c8ce7fc2041cdc54fb966653d5041767772c6dafdb6287727a91f449edef63209dc69cb9d999b054bd3c6c034bcc7685435f034ca444ad40a0
|
||||
DIST spicetify-cli-2.36.14.tar.gz 2020437 BLAKE2B 2350bc9aa0414f8fd8bca36acf0c47bfbf17dbe93094e63d88299eba9b5ba2cec64cd815daf9fa690db5e916361e6d3004ff6dea75d8d6a5b0eec9c38d608e68 SHA512 b9f09241d8a68d307d67fb1a90b9f9f8f660ffccc9870639720247549ad03c7552d47ac5458c91c77da036bd5beeeaaaf27bdf943411481d05347c4ffc42a6b1
|
||||
|
105
app-misc/spicetify-cli/spicetify-cli-2.36.14.ebuild
Normal file
105
app-misc/spicetify-cli/spicetify-cli-2.36.14.ebuild
Normal file
@ -0,0 +1,105 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module
|
||||
|
||||
MY_PN="cli"
|
||||
|
||||
WHITELIST_VERSIONS=(
|
||||
"<> 1.2.13 1.2.40"
|
||||
)
|
||||
|
||||
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/cli/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://gitlab.com/api/v4/projects/37881342/packages/generic/${PN}/${PV}/${P}-deps.tar.xz
|
||||
"
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
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,cli}
|
||||
newbin - spicetify <<-EOF
|
||||
#!/usr/bin/env sh
|
||||
exec /opt/spicetify-cli/cli \$@
|
||||
EOF
|
||||
fperms +x "${INSTALLDIR}/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