app-misc/spicetify-cli: add 2.37.2
Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
parent
3267be3ae5
commit
97f0ec6e43
@ -2,3 +2,5 @@ DIST spicetify-cli-2.37.0-deps.tar.xz 5208676 BLAKE2B ebf00d1ddba98b3cfa55b0d4b5
|
||||
DIST spicetify-cli-2.37.0.tar.gz 2020582 BLAKE2B 4bfdb06ba2b3c608e0de6569b87af5218e586d96180c08a923d7e703348dda931106000688ae1ab1872a7605d1d9967ee5ec433279cd84cb1f25217fd164066d SHA512 735c959eac29d2db4275b3c8722f2f95eb6d8e7ce5880c437df653c569bf357263340010c643c15725eb82ed1992d1634f446cc63ed9d8681da12056554399e3
|
||||
DIST spicetify-cli-2.37.1-deps.tar.xz 5206504 BLAKE2B cd0bbb00b3e066a8dcaa150a618777c55b5a7d4cf25c673c818b84157bd6e6d0cc2c941127fe55fa8fddad977b40b6111d6bc37c7c68abdfb70ed77145f6e095 SHA512 bcad131aba86bb67d2dae52ba80173cd8eaeb42ecf3728298cebe449ea7cf1d49d8249a996874c0faf4922d11275527fd7ca37e0abd5f7aeccc2d3516f52d2ce
|
||||
DIST spicetify-cli-2.37.1.tar.gz 2020746 BLAKE2B 35298fe515017a75a01a5c8256ba5f921c0ee88a7a856450894d428e3be079df743ddccda10026c6745760caf25b60e446af8b6f67ec108dd636bd1999fa77f0 SHA512 04e5636f1192e3bb9e1cb70597b74c16f31f96ffbf1a2a66563aba4df18aa1d6e41960fe256ccc235526e16969ba87675dc7dcd0b79f6e5a0b8bcc56ca617c68
|
||||
DIST spicetify-cli-2.37.2-deps.tar.xz 5206740 BLAKE2B 3220ee76d74679c8e7ddbe49b28c69099f15e7717aba7bc93cd24e9b836b96219f3c6aa70c5f8a18dc335eea6575676285e3fa50444a28953cf3dda724dcfdba SHA512 21fbe19f1fbda5caaafde785710dfb0372f3f9a59d47ee8f0e86162ce83c72bfb0fd64d9770cb7bc6dc2327750ca7eee89d020b6c4742a152976b9dc37c3f744
|
||||
DIST spicetify-cli-2.37.2.tar.gz 2020666 BLAKE2B e77530483cb89406ac7f76b97fcaca8a533329947d8ab6ac08d4765d6bdb681f1b4f77331e3445eda9615a70ba5cfaa04ccfecd3ae1feb73148474d71b182e96 SHA512 8289e3c26c8bbdc253d958d35c6d9c0e0a11469235e8c35b1257320c8a6b02953bcca525f3e358199daf664ccf0eac0de992f45fe85eba1a45188479b1483e4a
|
||||
|
105
app-misc/spicetify-cli/spicetify-cli-2.37.2.ebuild
Normal file
105
app-misc/spicetify-cli/spicetify-cli-2.37.2.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.45"
|
||||
)
|
||||
|
||||
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