Compare commits

...

2 Commits

Author SHA1 Message Date
Alfred Wingate
bc50fb1f8f
app-misc/spicetify-cli: add 2.37.0
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2024-08-07 04:45:27 +03:00
Alfred Wingate
ea541d600a
www-client/icecat: add 115.14.0
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2024-08-07 03:54:45 +03:00
4 changed files with 1436 additions and 0 deletions

View File

@ -1,2 +1,4 @@
DIST spicetify-cli-2.36.15-deps.tar.xz 5207432 BLAKE2B fe6af1e3308c1492bd41ba6fba2a09fcd2c57b4ead4ed6c11d6f9df73a031af2fc5ea0f91d38a43c4f02caff56fc1f30b1dc36bf437e637e823cf5ca487a421c SHA512 80bdcfdbbff4d554a2e45eb57d45258f6ecd089485842924683704ebbd26060344b240dfe4bf80bbb847c2ea0bd62097f552d3f742dfd4145854b8f1e2da7876
DIST spicetify-cli-2.36.15.tar.gz 2020827 BLAKE2B eeea01c083025f5c7df8cc0f83d3494fd7f593126c47836fb2ef810026080b94096edd543548a32f1ad0ef1b478dbc65f48d04bdc7c204b68ad660d4b4f9cf6f SHA512 747e4de5f30c23865af74e8b3ed055d481540a4a27c7520f9db77d2acc36c45f333891a58ce757cecf95dfeedd20e61e78aa6d22d1cc03b34f5bf87f339d1b82
DIST spicetify-cli-2.37.0-deps.tar.xz 5208676 BLAKE2B ebf00d1ddba98b3cfa55b0d4b578fe4894bc3f144a0bdf638aabad98ccdd069727cfb55fe64a2fd34d4e7510fef834b30f8d5489b34c25e839a08aad743d953c SHA512 6d30e1b06004953cce6235335cbc6f8b2686e446438a4cb0bcc971c7fa0f047e8e3b52a3cbbe1945674ada35dbd42040294a6afbf327f9cb32f685dbbc5f441b
DIST spicetify-cli-2.37.0.tar.gz 2020582 BLAKE2B 4bfdb06ba2b3c608e0de6569b87af5218e586d96180c08a923d7e703348dda931106000688ae1ab1872a7605d1d9967ee5ec433279cd84cb1f25217fd164066d SHA512 735c959eac29d2db4275b3c8722f2f95eb6d8e7ce5880c437df653c569bf357263340010c643c15725eb82ed1992d1634f446cc63ed9d8681da12056554399e3

View 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.43"
)
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
}

View File

@ -1,2 +1,3 @@
DIST firefox-115esr-patches-12.tar.xz 50732 BLAKE2B 821ea063bd14085458967e33570bb28a1457672d2c210368507532024db25dfbb7d30d37084a2cc60a4cc34dde453669ad9046c664e7e8459a8c7fab33485068 SHA512 e80b0eb9a4efa8e6a872a875a31e384a5d3ac2f7000a3d12b03cbe2dff43baf8e3e544b7b7baadcb46ae714e3709ecbc53742b9562fcb1b1caf85b037b5ad501
DIST icecat-115.13.0-3gnu1.tar.bz2 695172489 BLAKE2B cab28efcb29f53b096785c19501c5660d78fef5cd170189c79835ca23908736a597d390d92b056275c24d2296be780bda91423c67205c42e4674f3c02e99c68b SHA512 798328014bc648e2e43a5f72a473b05e704b8158ffd7d1cd1f3d93fcc14935ea19b84ebdc306b30f190cf178a1ae6974a9b8b53c360e879a4c1e0daba0055d28
DIST icecat-115.14.0-2gnu1.tar.bz2 696069423 BLAKE2B c9c40457c0fb98a5f22d2b82144d5712081454aefdbee8a13f8204650c08054f48d9c2d45b975369db0b3988f522ae44e19c31a47e46102cc74c8ad75ecd7844 SHA512 b8604a095f27da8a5d5d849e37d5e50384bea3a1813e2de089540a03ac6062e32ad65c2b8a4b0847da0b7c2745edb316fb29a9fb74554b5f3ec8aefd367ee2a0

File diff suppressed because it is too large Load Diff