app-misc/spicetify-cli: add 2.26.0
Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
parent
130ae8e35b
commit
8ff95d190a
@ -2,3 +2,5 @@ DIST spicetify-cli-2.25.2-deps.tar.xz 5125252 BLAKE2B 2523306a70bf2b4c092d26cf1e
|
|||||||
DIST spicetify-cli-2.25.2.tar.gz 2042156 BLAKE2B 74d085a2a89a0adb476f87be92c66ac5209c47a61023209ba596ad974886194f787076800b80580b55c6b8fcca4e1094b45500c851d6844dec682063d452b775 SHA512 e344b4095faa89b959b56a9571011df6dd5fab6afb70ab8af3888c48ed83774d6e719e99c113896fe65d96dc84ae21b5970981de96f3a8f3bff28870a13e334a
|
DIST spicetify-cli-2.25.2.tar.gz 2042156 BLAKE2B 74d085a2a89a0adb476f87be92c66ac5209c47a61023209ba596ad974886194f787076800b80580b55c6b8fcca4e1094b45500c851d6844dec682063d452b775 SHA512 e344b4095faa89b959b56a9571011df6dd5fab6afb70ab8af3888c48ed83774d6e719e99c113896fe65d96dc84ae21b5970981de96f3a8f3bff28870a13e334a
|
||||||
DIST spicetify-cli-2.25.3-deps.tar.xz 5124976 BLAKE2B e47fbce182703d72b3ff233e4246ca4bf209e7d7c7123e34a58e93757d66ec9ec47900c4d9d51f2a0f68d4c1b344963ce63ae5b8c36c7fb27789ffa41875d6e6 SHA512 584fcc90f57088a018bb3febce334cb50798ae521f0739d0a4b3f200a18bd4d21c1b47747bacb6da4103339c31a470dddb2cecab0da2a79de486508762d88a2f
|
DIST spicetify-cli-2.25.3-deps.tar.xz 5124976 BLAKE2B e47fbce182703d72b3ff233e4246ca4bf209e7d7c7123e34a58e93757d66ec9ec47900c4d9d51f2a0f68d4c1b344963ce63ae5b8c36c7fb27789ffa41875d6e6 SHA512 584fcc90f57088a018bb3febce334cb50798ae521f0739d0a4b3f200a18bd4d21c1b47747bacb6da4103339c31a470dddb2cecab0da2a79de486508762d88a2f
|
||||||
DIST spicetify-cli-2.25.3.tar.gz 2042190 BLAKE2B e2136ad9713f4f905e768bdf59ef3b8178a5dee14bf4f7c53fdfa2be25bbf43239225f56ba2b1c35093d31980af30f025ed4b33981c77a241777263e13eb6a04 SHA512 561e14c1ae8231a36514592f8faf6f0da6da216c51029ea494dfeed57093a5db7b015ed7ac09880f71277745edc9e0793e4b9a4a3631aa31f1b4c1e7eff6f443
|
DIST spicetify-cli-2.25.3.tar.gz 2042190 BLAKE2B e2136ad9713f4f905e768bdf59ef3b8178a5dee14bf4f7c53fdfa2be25bbf43239225f56ba2b1c35093d31980af30f025ed4b33981c77a241777263e13eb6a04 SHA512 561e14c1ae8231a36514592f8faf6f0da6da216c51029ea494dfeed57093a5db7b015ed7ac09880f71277745edc9e0793e4b9a4a3631aa31f1b4c1e7eff6f443
|
||||||
|
DIST spicetify-cli-2.26.0-deps.tar.xz 5125596 BLAKE2B dfdebe9573bd9fb6891103c2e4bc7b950045cf6eb7b524e834a05a4828df0ebb5972accccfce089dea4243a6967d8c5208cb1063f5b87915227f887ee9659b74 SHA512 9431fc358d96041d511653340d2d235f90351bc5ee7c85dd8e439f893cfa77ca8e5caedac90525b2682ed4ebf087f516bfeef3fb0ccae23a52505c082ed72785
|
||||||
|
DIST spicetify-cli-2.26.0.tar.gz 2042277 BLAKE2B 0b70583f3b1e62cef6ce5a3a0273e583f8164fe054d2a097d80cb16392c67e2bce58417b8fc70b75ea772617d73fd35b60c68549e8abef3cf8ab4ca36415e623 SHA512 0d88f6f3a1dc3c089c4faa268b2b3d76566697ccf6fff5a51417e38aa587ae8ec156a8a73cb5cffe692b66ed17551174e123404b9146c78d1347a0410a4b9ca9
|
||||||
|
95
app-misc/spicetify-cli/spicetify-cli-2.26.0.ebuild
Normal file
95
app-misc/spicetify-cli/spicetify-cli-2.26.0.ebuild
Normal file
@ -0,0 +1,95 @@
|
|||||||
|
# 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.22"
|
||||||
|
"~ 1.2.20"
|
||||||
|
"~ 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