app-misc/spicetify-cli: add 2.36.4
Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
parent
11897f63bd
commit
65493ded0f
@ -2,3 +2,5 @@ DIST spicetify-cli-2.36.2-deps.tar.xz 5205504 BLAKE2B cd9c42460feee3c9ff73239ee1
|
|||||||
DIST spicetify-cli-2.36.2.tar.gz 2016294 BLAKE2B 4e0baad39388d579d6180338c5b4322ff8b85c6f005e8c9717adf7d2bf153f05de170823b3ef07e49e438cab23bfe6e21ad7bfb7cd45e0aea822d0b244547b89 SHA512 49c91fd54c0179e92321038524fcf568d1b55adc024f1c680ab5de28c5de6a14b40ac993c44eb251b8881fbc33fc13b90ea68331b584a17da4ea063783cca920
|
DIST spicetify-cli-2.36.2.tar.gz 2016294 BLAKE2B 4e0baad39388d579d6180338c5b4322ff8b85c6f005e8c9717adf7d2bf153f05de170823b3ef07e49e438cab23bfe6e21ad7bfb7cd45e0aea822d0b244547b89 SHA512 49c91fd54c0179e92321038524fcf568d1b55adc024f1c680ab5de28c5de6a14b40ac993c44eb251b8881fbc33fc13b90ea68331b584a17da4ea063783cca920
|
||||||
DIST spicetify-cli-2.36.3-deps.tar.xz 5224512 BLAKE2B b3e6593192951dfad8576b9188b6b44e6edc3070901458ddc30a206c37ff52440a35d728f0ed77301f7d8d547fee6a7f7c9768b47822d7eca086e486c8a770bf SHA512 4ee391083135c6f6bc468a8627c39f06ebf3cec1a994398d4c54d9a0a07f22d41158f164afd919b5ff2e51cad26fbc8515a64689a5871e3341777533857701d5
|
DIST spicetify-cli-2.36.3-deps.tar.xz 5224512 BLAKE2B b3e6593192951dfad8576b9188b6b44e6edc3070901458ddc30a206c37ff52440a35d728f0ed77301f7d8d547fee6a7f7c9768b47822d7eca086e486c8a770bf SHA512 4ee391083135c6f6bc468a8627c39f06ebf3cec1a994398d4c54d9a0a07f22d41158f164afd919b5ff2e51cad26fbc8515a64689a5871e3341777533857701d5
|
||||||
DIST spicetify-cli-2.36.3.tar.gz 2016394 BLAKE2B 3043647e48b0aaac028a49899fce2ed248ba4b7be1902b180443b99e6d447c235782561a8e3c745668dbcc3f9e0f331772d19fc0203f027ea505fccf63d30a96 SHA512 61c2d6f7ef9c966e77116f36b47ef26620c5c552e476d1e328207b23c8b9476208d2f73d508a8bc74b57fa3f8cce191ada560095bc71e5514f51222f5545c676
|
DIST spicetify-cli-2.36.3.tar.gz 2016394 BLAKE2B 3043647e48b0aaac028a49899fce2ed248ba4b7be1902b180443b99e6d447c235782561a8e3c745668dbcc3f9e0f331772d19fc0203f027ea505fccf63d30a96 SHA512 61c2d6f7ef9c966e77116f36b47ef26620c5c552e476d1e328207b23c8b9476208d2f73d508a8bc74b57fa3f8cce191ada560095bc71e5514f51222f5545c676
|
||||||
|
DIST spicetify-cli-2.36.4-deps.tar.xz 5224528 BLAKE2B 3b61cc51d7467013d53c5d3a0abdff19415f5de3effdb7a304b9508f3a19105b9c31813b03efbc428f20b8516cc9fb48682598911ecc1185a5d1d83f53214418 SHA512 4e53d23db459b38680dfd2b1566ee24555528d4d645e35c78701d18015c078d79ba3ca884b7857302746cce1d4242c8ebbaf76a1c01fa8c6238ddd90d1b0e575
|
||||||
|
DIST spicetify-cli-2.36.4.tar.gz 2016243 BLAKE2B 7ee8e617b64ef439a6c0b08fae0aaf48418653f676cba21aabbb19f6ef43ee3f4b05e47eea97d62ec81ff388ce98daffa515e02604fc4985ab63ca5868b4bf90 SHA512 611c57bfc255438460ed8bdaf0daca6451893833b54bb5146b305ec34165f1d1a2f7831a4ecf52c5fee583fc274e3de22d2176ab564ea4212f61e41d62c4e867
|
||||||
|
99
app-misc/spicetify-cli/spicetify-cli-2.36.4.ebuild
Normal file
99
app-misc/spicetify-cli/spicetify-cli-2.36.4.ebuild
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
# Copyright 1999-2024 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit go-module
|
||||||
|
|
||||||
|
WHITELIST_VERSIONS=(
|
||||||
|
"<> 1.2.8 1.2.35"
|
||||||
|
)
|
||||||
|
|
||||||
|
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 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