Compare commits

..

2 Commits

Author SHA1 Message Date
Alfred Wingate
927e5ac5c8
app-misc/spicetify-cli: drop 2.28.1, 2.29.0, 2.29.1
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2024-02-03 09:29:36 +02:00
Alfred Wingate
fb8873dd24
app-misc/spicetify-cli: add 2.31.0
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2024-02-03 09:12:57 +02:00
4 changed files with 4 additions and 206 deletions

View File

@ -1,8 +1,4 @@
DIST spicetify-cli-2.28.1-deps.tar.xz 5168592 BLAKE2B b32e9905f338f82fc46ce41af56b5195ea034f31b2a2a8da9ac98367ccfd03f4d12f430a251664354507955d08296ad001bb025019dc754c4d09d291a06ad002 SHA512 4d276c2ca678622700939a80daa80c334c7818c0ad3290eb10f5bc1eca32e62d276fbff282307d0a8a6267dbe67446e58b1d6730681749d73b92326f01ddb869
DIST spicetify-cli-2.28.1.tar.gz 2042062 BLAKE2B 82b55d0c2ebe1669a8ebf14874c8eb934e08a48e61b6eea88ac683c16a09e20cedd324e92b71fdea0683c78597513789ca8f7b043bb985be0c87add79ffe57da SHA512 aa22bb51826d0ff2ebbd47029bc65eb9f3b6431851f70853977c54e4aad0317f831ca74e48dd4e1733f65e40a728fc11e356d7163b00f48b52df8cb6a2a96296
DIST spicetify-cli-2.29.0-deps.tar.xz 5167556 BLAKE2B e4522aa90eba06eec4c1566d1fc09889cb959abe373dd52b44c76717878231ca37435084d71e422cd1eeb23aa54045debf3663b72ddd26c132df85880b361290 SHA512 376947bc6a68b64ffbbf184f07394e8f681632832db050e11aecf9eb2a4aab11cf2c14e3ada4ced25b69a6005fd3a8b9b1caadc6137523b07c138c4d36d9523f
DIST spicetify-cli-2.29.0.tar.gz 2042759 BLAKE2B 3f5d30de32a09f223d2e851845dc72ed7917f38532174d0a41a5c5e85dbef464f4c241ec2d84e9328a5987f7d29dfa7c2c5b4d3f5c2b443649bcd56764fff4bf SHA512 fdf87701d033efad8d8786cda7d07711407158fbd6053f7bf405b782d4b9ebb69d1f3e8ed11a30b94bb7dfbf5513bdcb4a4226e964a38487711c15207ab0a3a3
DIST spicetify-cli-2.29.1-deps.tar.xz 5167956 BLAKE2B a372f94aee08ba24c3580624ea8b875ed034a4928503461803713d54890b19bdaf7b8eb41ff11488c68545267c7453e93bfba1b00f6e6b280b9b0e386ccad04d SHA512 0753dd90f5309d0c17b1f73c5f60f89d5701f6017895e4ca80d4ae897ff03ca3c1ac0aeb7759cdb2013632e1baabae8e91997b4520aef42b1fddd142ac66daa3
DIST spicetify-cli-2.29.1.tar.gz 2042773 BLAKE2B 8a0e7833fa4183eb689d0b451391a79569a60265e74c45871f7af1575cf340190da614e63421939506a52b79b2c18ef8b5d4eed0b4d37d219f99112e12c1435e SHA512 e23f53e8db009a9cac22b57c50542acbb5a9aa212b055354bcf11a85743d2c9f5aabcdac1abb9bd8f6ccacb45792f40813e30cd179fe01d7653e31c50b675759
DIST spicetify-cli-2.30.0-deps.tar.xz 5177060 BLAKE2B a540c5cd77c9343ba53d8838cf5b0a79b2bdddf6bdcc2b49e631f93e345f3d84f03d74d23d9cbe68d04efb0f2c4419e98dff16d13477d28b55858745129931c6 SHA512 3262ff75b05375cc5531fd52b7815b935037caf1bfeec0c4a8c2a904bcf8310917c86cde2eccf849e1bf5d5525434050293414855a5130e1103aa9a77491864b DIST spicetify-cli-2.30.0-deps.tar.xz 5177060 BLAKE2B a540c5cd77c9343ba53d8838cf5b0a79b2bdddf6bdcc2b49e631f93e345f3d84f03d74d23d9cbe68d04efb0f2c4419e98dff16d13477d28b55858745129931c6 SHA512 3262ff75b05375cc5531fd52b7815b935037caf1bfeec0c4a8c2a904bcf8310917c86cde2eccf849e1bf5d5525434050293414855a5130e1103aa9a77491864b
DIST spicetify-cli-2.30.0.tar.gz 2011152 BLAKE2B 6e0e2153bef7aa52d44e00c6d3c54293ca000fd8ad2290fd7209ed4de1b6f3bbe3d860e120aa42cfe569eeb6163aaf1e5d2870427224b57e5c0cc7248c06f429 SHA512 f9c72a78a574dccae6e73ae3d798a1670be31972baf80750d1ade2933aa0694ed1fd6dd427f2f57842765f305cbe5f7e71f805f40df6e89e115315d9c607e3b9 DIST spicetify-cli-2.30.0.tar.gz 2011152 BLAKE2B 6e0e2153bef7aa52d44e00c6d3c54293ca000fd8ad2290fd7209ed4de1b6f3bbe3d860e120aa42cfe569eeb6163aaf1e5d2870427224b57e5c0cc7248c06f429 SHA512 f9c72a78a574dccae6e73ae3d798a1670be31972baf80750d1ade2933aa0694ed1fd6dd427f2f57842765f305cbe5f7e71f805f40df6e89e115315d9c607e3b9
DIST spicetify-cli-2.31.0-deps.tar.xz 5177792 BLAKE2B 1cfc1c659e2f5eb337e232a83b3e1619f9ebfa4c48a5b0a0d374eecaadca33f255badb81860e7817ce9d40a7e29fd30700fc2c548074166ef6f4022a979bb509 SHA512 2f824304d9e539b967a987c7d802d6979030befdf28ab395dd2da5d7142c0aeff1dfd138ae61edc7510fb2aa01e62488d14e6c5229331b51bc9d1811b52a8f57
DIST spicetify-cli-2.31.0.tar.gz 2012768 BLAKE2B 656b3d9c781371bc40d141abc977667e28f3f5366585e9706cc50188051f3973d49f5aecfbf7930d3f2f46c526ad39b1b2bdf1855aa64dff0bdee44350f08f79 SHA512 a93f757ade662d54a0f50e03ef1ecd94d20154787d57b105bffd780ca543dfb6abc644e94e0c36728ccbe3214fc723a14a9016b2d235ef5c6d024ff23e550a61

View File

@ -1,99 +0,0 @@
# 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.8 1.2.28"
)
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
}

View File

@ -1,99 +0,0 @@
# 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.8 1.2.28"
)
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
}

View File

@ -1,4 +1,4 @@
# Copyright 1999-2023 Gentoo Authors # Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=8 EAPI=8
@ -6,7 +6,7 @@ EAPI=8
inherit go-module inherit go-module
WHITELIST_VERSIONS=( WHITELIST_VERSIONS=(
"<> 1.2.8 1.2.26" "<> 1.2.8 1.2.30"
) )
whitelist_versions() { whitelist_versions() {