app-misc/spicetify-cli: add 2.22.1
Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
parent
6c8902c9da
commit
e4a04f0d13
@ -4,3 +4,5 @@ DIST spicetify-cli-2.21.0-deps.tar.xz 4962368 BLAKE2B cd0db15beb1cc7c6360eb2d2a5
|
|||||||
DIST spicetify-cli-2.21.0.tar.gz 2041001 BLAKE2B 73ec38aca48da8c2585347517e45ff9db0bedeaf15a3824af80096f0c02324476249fe2334375fa745a3606709688befacf9170c1b0cf7315ae40f761df7809a SHA512 e1160f37c95f682488e3b60d09658fc11930877681d4d9e153e73bc92dd140b5608d97d86f5ac1d1146aa0dfbd5fac71794067e216b1aab52d60764d65c88242
|
DIST spicetify-cli-2.21.0.tar.gz 2041001 BLAKE2B 73ec38aca48da8c2585347517e45ff9db0bedeaf15a3824af80096f0c02324476249fe2334375fa745a3606709688befacf9170c1b0cf7315ae40f761df7809a SHA512 e1160f37c95f682488e3b60d09658fc11930877681d4d9e153e73bc92dd140b5608d97d86f5ac1d1146aa0dfbd5fac71794067e216b1aab52d60764d65c88242
|
||||||
DIST spicetify-cli-2.22.0-deps.tar.xz 4962568 BLAKE2B 36619a9c2b4d10bb2d2c8f0ed8f0a2ab0e83ce314f44f239910dbfa599c10ece4577084ea55823bac97726c135866c4f004c5bd80b155ba26cec055fe4f0f482 SHA512 ddde2a04cadf819e5e4ae3c6bb81edaef5dfd5f8e809cffd3bea18383d359331a2b65420b2675ddbb84ee3df21cba9dd86300bca4d5ba5b3c20276d80f1692e3
|
DIST spicetify-cli-2.22.0-deps.tar.xz 4962568 BLAKE2B 36619a9c2b4d10bb2d2c8f0ed8f0a2ab0e83ce314f44f239910dbfa599c10ece4577084ea55823bac97726c135866c4f004c5bd80b155ba26cec055fe4f0f482 SHA512 ddde2a04cadf819e5e4ae3c6bb81edaef5dfd5f8e809cffd3bea18383d359331a2b65420b2675ddbb84ee3df21cba9dd86300bca4d5ba5b3c20276d80f1692e3
|
||||||
DIST spicetify-cli-2.22.0.tar.gz 2039562 BLAKE2B db29ce699632166a9bb0c071726690f160f0a985fa8ea8b1391824eadbcf3a0db58050a8c8c5b381685d711ea97d45befbf26f4a2e98cb40dfba670ee149c072 SHA512 1a1e659e67aadfa4044750a0968579b590428394ae8f071a71326784b91225468d1db60264021087b5868fa4f9ca07e98a1d759bfb62d62001f99a1c3124a56c
|
DIST spicetify-cli-2.22.0.tar.gz 2039562 BLAKE2B db29ce699632166a9bb0c071726690f160f0a985fa8ea8b1391824eadbcf3a0db58050a8c8c5b381685d711ea97d45befbf26f4a2e98cb40dfba670ee149c072 SHA512 1a1e659e67aadfa4044750a0968579b590428394ae8f071a71326784b91225468d1db60264021087b5868fa4f9ca07e98a1d759bfb62d62001f99a1c3124a56c
|
||||||
|
DIST spicetify-cli-2.22.1-deps.tar.xz 4961908 BLAKE2B 99aaf18a1df9e48cbe0e109d611b8fc3998cb8f818e26535373fd2fc7419320e8a1df32de78317ea3ec0ada48be1a7c1361e2fe10cf844e69f898e80258514e9 SHA512 bc807e91718aacf5f66f57a9ee3bff5bac40d553d93ddae37eaebbf9ac69265ab2c1e368d01c700bb707e53b476e4e63f88b91d46e1fc4a364adb91858271dc8
|
||||||
|
DIST spicetify-cli-2.22.1.tar.gz 2039587 BLAKE2B 484a27dad2a0922709e21085f63049fa6e46e146577d96ae3a7fb226f1ba1cabc5af37bcd319a2e42985d6083ebe991e7f5a8f10d360de11aa109f228163d417 SHA512 b26334ec1ff83d5425bcb468a91cb5e19c06601d8375d9b8557b737ef5788391922e5c7c264d4a7b7669c67bb33a47b1b1475e2cdee48347a32634595a9df7bc
|
||||||
|
93
app-misc/spicetify-cli/spicetify-cli-2.22.1.ebuild
Normal file
93
app-misc/spicetify-cli/spicetify-cli-2.22.1.ebuild
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit go-module
|
||||||
|
|
||||||
|
WHITELIST_VERSIONS=(
|
||||||
|
"~ 1.2.13"
|
||||||
|
"~ 1.2.11"
|
||||||
|
"~ 1.2.9"
|
||||||
|
"~ 1.2.8"
|
||||||
|
)
|
||||||
|
|
||||||
|
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."
|
||||||
|
elog "# chmod a+wr /opt/spotify/spotify-client"
|
||||||
|
elog "# chmod a+wr /opt/spotify/spotify-client/Apps -R"
|
||||||
|
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"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user