Compare commits

...

2 Commits

Author SHA1 Message Date
Alfred Wingate
5d5719d4b8
app-misc/spicetify-cli: add 2.36.10
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2024-05-03 16:42:13 +03:00
Alfred Wingate
e85227feeb
net-im/matrix-commander: add 7.6.2
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2024-05-03 16:41:37 +03:00
4 changed files with 151 additions and 0 deletions

View File

@ -1,3 +1,5 @@
DIST spicetify-cli-2.36.10-deps.tar.xz 5223544 BLAKE2B 8e3f700d6f0228936bce557e46ffaf8fae76d3e3345c6d836e6b0ab06f349038c86ab0ba4d844112237278c4574c31521aaa8485e1e5235498e8c1f1662cd5a0 SHA512 39e1e3d4d1e33e732c175fe68e363731dc3f44c406dc8f0a1f44ad810d8a9043d2bb24a1dae9e8959602df3ad0e65941e89fad083175e9a149dfa1a23e1d299c
DIST spicetify-cli-2.36.10.tar.gz 2018364 BLAKE2B 7e19088599bfef2acd990e3f34900f3c2cbc079dfeec984b171dad76af8352cae676860f80397ec8c940536fd00bbad241eb8502bf13062934922411eeb9b7c0 SHA512 1751dba60a9ca054bc0bc1dc712d2cef28342ebdce4cee1be3697c393915b4999c19eacbc4ab4c401e1056b91c37f4734dd59a1fd22d077e0d915e40b0846324
DIST spicetify-cli-2.36.8-deps.tar.xz 5224540 BLAKE2B 0d21bdb32df7c5bdb4402c95071574873693c84dce99ca1c82d45462b4b000b8634f9aac339e118cfc52642b2d9377000c8ec15ffc891f26c50e48377bac301c SHA512 1af6850c11433579a8ec0d25430538fafe89f304aed8fcd1c0ea32162708efeaf1eb62f76be5f228fbe68c59ff7671ec41106c68a786aae7f7bab23b9c081d6d DIST spicetify-cli-2.36.8-deps.tar.xz 5224540 BLAKE2B 0d21bdb32df7c5bdb4402c95071574873693c84dce99ca1c82d45462b4b000b8634f9aac339e118cfc52642b2d9377000c8ec15ffc891f26c50e48377bac301c SHA512 1af6850c11433579a8ec0d25430538fafe89f304aed8fcd1c0ea32162708efeaf1eb62f76be5f228fbe68c59ff7671ec41106c68a786aae7f7bab23b9c081d6d
DIST spicetify-cli-2.36.8.tar.gz 2018184 BLAKE2B 18b1e2708ed83d75181be0f3ffd168def5032b8c0cfeb9978a9ac50366ee3cff7f2598984468cda3f0ae747718c282509a0ce82255990e1df2bf83fa4e74b6c3 SHA512 601c319c251a175a71cea6e947dce37d0bdec5bfb9d06415a23657f880b462f5a2867d51432874973403aea2f5f09f996ff6416c4651aa4275524b3de847103b DIST spicetify-cli-2.36.8.tar.gz 2018184 BLAKE2B 18b1e2708ed83d75181be0f3ffd168def5032b8c0cfeb9978a9ac50366ee3cff7f2598984468cda3f0ae747718c282509a0ce82255990e1df2bf83fa4e74b6c3 SHA512 601c319c251a175a71cea6e947dce37d0bdec5bfb9d06415a23657f880b462f5a2867d51432874973403aea2f5f09f996ff6416c4651aa4275524b3de847103b
DIST spicetify-cli-2.36.9-deps.tar.xz 5224876 BLAKE2B ea51394a620fb64091ac552484698d35497365793417f281e8dba3950f0605c563850e61b48ca4cd2e99d2d1b1504372de094bfc416dd65f3cea9a009847ef78 SHA512 614dab1e006f4f532588e62d0e196e43956c04bc304098a86f2ea4a668a6644ab4779ee95af95fff10bf978b3651646f75a2a2a8db29574e7de7ec2e8a1b06ed DIST spicetify-cli-2.36.9-deps.tar.xz 5224876 BLAKE2B ea51394a620fb64091ac552484698d35497365793417f281e8dba3950f0605c563850e61b48ca4cd2e99d2d1b1504372de094bfc416dd65f3cea9a009847ef78 SHA512 614dab1e006f4f532588e62d0e196e43956c04bc304098a86f2ea4a668a6644ab4779ee95af95fff10bf978b3651646f75a2a2a8db29574e7de7ec2e8a1b06ed

View 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.36"
)
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 +1,2 @@
DIST matrix-commander-7.6.0.gh.tar.gz 1828464 BLAKE2B 272857910590922a78dfd12b6ae925b61143d4383e4154b431b59803a202f08481879a445bb713ee766b0f437d3e22ab4c6b27201c46036b505c11c03736173f SHA512 8b6ccedc4df6a11a6f80b78e454ec06e831699990c6f5ed7dfa03271228f1488df76fe0ff5ffee3889bc868ac04faf2ae803e2e4ef24228a079fa06e8ad3d45d DIST matrix-commander-7.6.0.gh.tar.gz 1828464 BLAKE2B 272857910590922a78dfd12b6ae925b61143d4383e4154b431b59803a202f08481879a445bb713ee766b0f437d3e22ab4c6b27201c46036b505c11c03736173f SHA512 8b6ccedc4df6a11a6f80b78e454ec06e831699990c6f5ed7dfa03271228f1488df76fe0ff5ffee3889bc868ac04faf2ae803e2e4ef24228a079fa06e8ad3d45d
DIST matrix-commander-7.6.2.gh.tar.gz 1828551 BLAKE2B e7ddfdbc0ce3b19129b6927a9584f434db67321232327046179be499d266e8c69ea744689ec90f9ab5485a723077a2c2d61b10229bb0847558fe3caa5a1b7947 SHA512 67aceed1de5167201b5c50fa124ceeaae42e8cc18585f6ffd90577eef120cdc5785f14e92c1a529a89a875927ec1ae7a8f3221c80831b6896bc9f5fec79d2ab5

View File

@ -0,0 +1,49 @@
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_SINGLE_IMPL=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1 bash-completion-r1
DESCRIPTION="Simple but convenient CLI-based Matrix client app for sending and receiving"
HOMEPAGE="https://github.com/8go/matrix-commander"
SRC_URI="https://github.com/8go/matrix-commander/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
# Tests are a bunch shell scripts and lone python script
# Not gonna bother as they require testing against a running matrix server
RESTRICT="test"
RDEPEND="
$(python_gen_cond_dep '
>=dev-python/aiofiles-0.6.0[${PYTHON_USEDEP}]
dev-python/aiohttp[${PYTHON_USEDEP}]
dev-python/async-timeout[${PYTHON_USEDEP}]
dev-python/emoji[${PYTHON_USEDEP}]
dev-python/markdown[${PYTHON_USEDEP}]
>=dev-python/matrix-nio-0.14.1[e2e(+),${PYTHON_USEDEP}]
dev-python/notify2[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
dev-python/python-magic[${PYTHON_USEDEP}]
dev-python/pyxdg[${PYTHON_USEDEP}]
')
"
src_prepare() {
eapply_user
sed -i -e 's/matrix-commander.py/matrix-commander/' auto-completion/bash/matrix-commander.bash || die
}
src_install() {
distutils-r1_src_install
newbashcomp auto-completion/bash/matrix-commander.bash matrix-commander
}