app-misc/spicetify-cli: add 2.38.3
Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
parent
d0880cfd04
commit
da2785b90d
@ -4,3 +4,5 @@ DIST spicetify-cli-2.37.7-deps.tar.xz 5206992 BLAKE2B 2e64c0cc43dccd1816258e21f2
|
|||||||
DIST spicetify-cli-2.37.7.tar.gz 2021758 BLAKE2B a51a70fc8d2775fca99768eb11f332c64c885063837abee4156f2fa5e02c63c36fec9f5c8c452b2496bfd038b9d2d2c6e33060fbdbb1a1582cd931aee00bffc9 SHA512 344a38c8d2e23917d9dd1827609399e0bd947477cff87eb4a56d90109f91b3d5a10ffc4b2d304b6e38ec43d88d87bc42f3b83c33eb16bdc5cb4bf7ecb1e43c67
|
DIST spicetify-cli-2.37.7.tar.gz 2021758 BLAKE2B a51a70fc8d2775fca99768eb11f332c64c885063837abee4156f2fa5e02c63c36fec9f5c8c452b2496bfd038b9d2d2c6e33060fbdbb1a1582cd931aee00bffc9 SHA512 344a38c8d2e23917d9dd1827609399e0bd947477cff87eb4a56d90109f91b3d5a10ffc4b2d304b6e38ec43d88d87bc42f3b83c33eb16bdc5cb4bf7ecb1e43c67
|
||||||
DIST spicetify-cli-2.38.2-deps.tar.xz 5215784 BLAKE2B 1746c10881dada254cd81474418f478813d08fa2e0cb003ee21881435e1f596b40d370fd55d75e4eba52e9fefe9447ca7edfec725fbf34089ea0ea1fec3551c4 SHA512 96e581d29ab10f4244122102ee2ce49df705a961835fbd43281074530eded51ef8ae2ed2c8a6fc177fc3e0d8dd38c55d2d99eebfb4395f2074d8a465de46965b
|
DIST spicetify-cli-2.38.2-deps.tar.xz 5215784 BLAKE2B 1746c10881dada254cd81474418f478813d08fa2e0cb003ee21881435e1f596b40d370fd55d75e4eba52e9fefe9447ca7edfec725fbf34089ea0ea1fec3551c4 SHA512 96e581d29ab10f4244122102ee2ce49df705a961835fbd43281074530eded51ef8ae2ed2c8a6fc177fc3e0d8dd38c55d2d99eebfb4395f2074d8a465de46965b
|
||||||
DIST spicetify-cli-2.38.2.tar.gz 2022538 BLAKE2B 591cbcb507182b7eabef79a2e18607b225481914b759565d0fc93af42a0a2ab108a26355651ec9d006c09075f6886f1b197696d6c779e589a550f2c4a96b30e3 SHA512 4fa36b273efbfda1f86b49ee10ff20d3d911d02e14fac8ee117364c674e0ae981523104f3adffe035919b92a6f1f1df4665b81bf24aff6a7c2ee4863269b6805
|
DIST spicetify-cli-2.38.2.tar.gz 2022538 BLAKE2B 591cbcb507182b7eabef79a2e18607b225481914b759565d0fc93af42a0a2ab108a26355651ec9d006c09075f6886f1b197696d6c779e589a550f2c4a96b30e3 SHA512 4fa36b273efbfda1f86b49ee10ff20d3d911d02e14fac8ee117364c674e0ae981523104f3adffe035919b92a6f1f1df4665b81bf24aff6a7c2ee4863269b6805
|
||||||
|
DIST spicetify-cli-2.38.3-deps.tar.xz 5215728 BLAKE2B 4df18782da207365cb2769f7be2121e9044709cd4cb8e97dbd5e60dd18daeef604420efb283104644a5e9c11b50b2d4e72a4e3d4c055ec4f2ed0721acf0554d9 SHA512 c7560a6af6dd0dccfdde1d63120d8e4ba8eae0cf0478575ef1ff265b70e259f7904fd69274b6ccbdf5d910153562cbf386f76b7d8cd88b0f4aad25ee5985cf2c
|
||||||
|
DIST spicetify-cli-2.38.3.tar.gz 2022041 BLAKE2B d5cb94ab4f12e8967ab544feb84c5af5c3dfa49ed07088948e787d8b36681a2e42cb677231a7291073ed9419dd66027c1e3a9bb1a31e042ce629a4c9c9e3ff5e SHA512 0de38f61093f25a38841644f7d713dab932490c043503b6bc4162dad4dcfb1fa7aa689ab8a9c2e91638ce8d07a324ad904a66f9131afb4c9dd23f7f4152bcde0
|
||||||
|
105
app-misc/spicetify-cli/spicetify-cli-2.38.3.ebuild
Normal file
105
app-misc/spicetify-cli/spicetify-cli-2.38.3.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.46"
|
||||||
|
)
|
||||||
|
|
||||||
|
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