app-misc/spicetify-cli: add 2.38.5
Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
parent
ee2052a9a1
commit
a5a735d872
@ -1,2 +1,4 @@
|
|||||||
DIST spicetify-cli-2.38.4-deps.tar.xz 5215372 BLAKE2B 7a1ad9ad256ae31d2f6ae51a0bb01021ab8062769133d0fa1b25796a97925ec3a9ceb48c28490615a4456d346edb8133f255900ab7bc3216ce84135a6e01aef6 SHA512 ce4fa35ec07caccfc165a3f950fdcbf133c88329045d3363a3047aaa6fd2def8ae1960db425e3826000c11145148cdcd6443932d3812a18ff0f27d1e9c033ac6
|
DIST spicetify-cli-2.38.4-deps.tar.xz 5215372 BLAKE2B 7a1ad9ad256ae31d2f6ae51a0bb01021ab8062769133d0fa1b25796a97925ec3a9ceb48c28490615a4456d346edb8133f255900ab7bc3216ce84135a6e01aef6 SHA512 ce4fa35ec07caccfc165a3f950fdcbf133c88329045d3363a3047aaa6fd2def8ae1960db425e3826000c11145148cdcd6443932d3812a18ff0f27d1e9c033ac6
|
||||||
DIST spicetify-cli-2.38.4.tar.gz 2022350 BLAKE2B 336fe1e6cf7741bb4acc73b92c13f803c0fe9abfe2ef5eac8b6d23ffad4a8dc0f576363b2022b908abd115076a48581fd989e9ee720f9ed0862a6614d59c0de3 SHA512 381d975515fc4433cb036fbd4ca3670ae509da4670c6784dc1f4fbfcd27c9f4c2f8faf9fa700428688a68dc658916b32fc29859f3df85f2668d4f0f76f39a9f5
|
DIST spicetify-cli-2.38.4.tar.gz 2022350 BLAKE2B 336fe1e6cf7741bb4acc73b92c13f803c0fe9abfe2ef5eac8b6d23ffad4a8dc0f576363b2022b908abd115076a48581fd989e9ee720f9ed0862a6614d59c0de3 SHA512 381d975515fc4433cb036fbd4ca3670ae509da4670c6784dc1f4fbfcd27c9f4c2f8faf9fa700428688a68dc658916b32fc29859f3df85f2668d4f0f76f39a9f5
|
||||||
|
DIST spicetify-cli-2.38.5-deps.tar.xz 5258904 BLAKE2B 0ec1aef9e41255c141a567d78749bbf4e2fc948c20f225ec484fe9ab419133d32ecdfef18c562c5af1677d77600ce9d0099f75e12e2955fb6393b66f73099ad2 SHA512 24714fd03f8f3c28e8a11c03bf9f6d37890c3ee49486f90cc8f162efb4b4a3e9bec1422e5dd6e23aff5ddbe96ad04d678d5e1ba6610b0e66b264e643ba9acb80
|
||||||
|
DIST spicetify-cli-2.38.5.tar.gz 2022514 BLAKE2B a34f15868e45b59530db631ff91e7a5ef281b9e15677dbe3d81a22dc6ef37f3d57ea2d6eb57ef371f7ceed310856b0d38bc182d1fca5cc541463bb04622318e1 SHA512 bcb411b2d0c6448d84557c18d64886dcc490618c35acb89e3a77b316acb43caf3dcb88c13e3d2fa03c5d0d3505492a9c62b2526d842faaadfb78ce95bf2936ca
|
||||||
|
105
app-misc/spicetify-cli/spicetify-cli-2.38.5.ebuild
Normal file
105
app-misc/spicetify-cli/spicetify-cli-2.38.5.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.14 1.2.52"
|
||||||
|
)
|
||||||
|
|
||||||
|
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