From a663f76ae131efcc273253fa89d189337cedaad1 Mon Sep 17 00:00:00 2001 From: Nils Korsfeldt Date: Fri, 12 Aug 2022 10:46:05 +0000 Subject: [PATCH] app-misc/spicetify-cli: add 2.10.2 --- app-misc/spicetify-cli/Manifest | 2 + .../files/add_gentoo_install_dir-2.10.2.patch | 12 +++++ .../spicetify-cli/spicetify-cli-2.10.2.ebuild | 48 +++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 app-misc/spicetify-cli/files/add_gentoo_install_dir-2.10.2.patch create mode 100644 app-misc/spicetify-cli/spicetify-cli-2.10.2.ebuild diff --git a/app-misc/spicetify-cli/Manifest b/app-misc/spicetify-cli/Manifest index c040017..4edb099 100644 --- a/app-misc/spicetify-cli/Manifest +++ b/app-misc/spicetify-cli/Manifest @@ -28,4 +28,6 @@ DIST golang.org%2Fx%2Ftools%2F@v%2Fv0.0.0-20180917221912-90fa682c2a6e.mod 26 BLA DIST golang.org%2Fx%2Ftools%2F@v%2Fv0.0.0-20190328211700-ab21143f2384.mod 87 BLAKE2B 32cb406deea05323b1121386bf61f344f8eda0b5370e95bb73828ce0bea50bee375ae3e9b076b9d683a4d89561709c5e97e45e6b08344fbdf6b03b3ce4398dcd SHA512 18ae9b2f54109b4ec5cdea433ee0e3b7006e4d5ea57022d6e8151d4d364735a6b55cf7b5eb2f43b602ec786b2b6819ad78dfc33151ee1a63a0b1199f54ce34a1 DIST gopkg.in%2Fini.v1%2F@v%2Fv1.62.0.mod 23 BLAKE2B 4e15082dd2b6e386e93baa78307538fba456343420c52605d453c6309f256e8062ea4b821d70c926096ae58a8feb33c6b796726d2dcc886c58e8293f99ac92a7 SHA512 7650ff592e6f5a0393f794fbdf17a28ad228a2d29ca79685c9ab8d9ec395554f1691b2a0d061e6248cf542f89be4d9a68884f7b24de7c8ddfef9c02cfeedda73 DIST gopkg.in%2Fini.v1%2F@v%2Fv1.62.0.zip 66745 BLAKE2B acf0c83323e5e7a7444b615ca7bbdfd4c43bc9a5985532fec2cf80679fc49bf23cfa8579468fff501a1ada101b3ce84fd24223408e05a85408235990fffa20ff SHA512 b812663ce5f6668da2265890b0ec9fd0531bb128a69fc6cf3546ca9acda71b4db2d8be782f18d81665b060d0418ce6f92bfb69f6dcb89b18b0d5492df4505cb3 +DIST spicetify-cli-2.10.2-deps.tar.xz 4531092 BLAKE2B 7d80ba127ce855d030711ca5f970a3bd3f9f27d0151b7a1da2b256e1ec1ef1f1f3ec3d20f76ee15bc4a417a2660c036692af603fc1eb7d1701ed59082211008e SHA512 0da87eb5280e961e26312967a06ef4a3ad409c61560fce9b85cc5a28c98d18d40abacff8eaf2f8662555ef6e9045a7fbab6fda3b43c52971b09d29caf6292577 +DIST spicetify-cli-2.10.2.tar.gz 1134027 BLAKE2B b20a32c28d839f4ad68c760f6eba0258da9a8f1bef9ccade098ec38eb7b92af3c9a792400f637c182e88519a988723dcb37cb1864014202360dbf25b9b4b8fd9 SHA512 6847e3c8ce028ac6608068bf6106c0279a4469b04684228e3e37b54a3a4231d279f03c4a0be8a1b1c6b9a54d4b8bd1e74e5ce8034223261b25868089acdba7cf DIST spicetify-cli-2.8.3.tar.gz 646421 BLAKE2B 0c369127c0ba58ceebca9097971053e8300758213e91b228e2d46033d1a861f2a7c548692b2ddc414b39811a5322d4f98bde55ead49047275c5eb0fbcf49ff3b SHA512 bbb706437408fa1a488481d188916136b4921cade28513f37cd0cb0dd8746389e68cbb6396f4cd46d283ef3edfb64a8742caaef6a6356c048985e86d409866b2 diff --git a/app-misc/spicetify-cli/files/add_gentoo_install_dir-2.10.2.patch b/app-misc/spicetify-cli/files/add_gentoo_install_dir-2.10.2.patch new file mode 100644 index 0000000..ad0a358 --- /dev/null +++ b/app-misc/spicetify-cli/files/add_gentoo_install_dir-2.10.2.patch @@ -0,0 +1,12 @@ +diff --git a/src/utils/config.go b/src/utils/config.go +index 77118e3..ea1d9a5 100644 +--- a/src/utils/config.go ++++ b/src/utils/config.go +@@ -294,6 +294,7 @@ func linuxApp() string { + + potentialList := []string{ + "/opt/spotify/", ++ "/opt/spotify/spotify-client/", + "/usr/share/spotify/", + "/usr/libexec/spotify/", + "/var/lib/flatpak/app/com.spotify.Client/x86_64/stable/active/files/extra/share/spotify/", diff --git a/app-misc/spicetify-cli/spicetify-cli-2.10.2.ebuild b/app-misc/spicetify-cli/spicetify-cli-2.10.2.ebuild new file mode 100644 index 0000000..9eea763 --- /dev/null +++ b/app-misc/spicetify-cli/spicetify-cli-2.10.2.ebuild @@ -0,0 +1,48 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +go-module_set_globals + +DESCRIPTION="Commandline tool to customize Spotify client." +HOMEPAGE="https://github.com/khanhas/spicetify-cli" +SRC_URI=" + https://github.com/khanhas/spicetify-cli/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://gitlab.com/api/v4/projects/37881342/packages/generic/spicetify-cli/${PV}/spicetify-cli-${PV}-deps.tar.xz +" + +LICENSE="Apache-2.0 BSD GPL-3 MIT" +SLOT="0" +KEYWORDS="~amd64" + +INSTALLDIR="/opt/${PN}" + +RDEPEND="~media-sound/spotify-1.1.84" + +PATCHES=( "${FILESDIR}/add_gentoo_install_dir-2.10.2.patch" ) + +src_compile() { + ego build +} + +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. Version 1.1.84 is" + elog "supported by this version of spicetify. To be able to modify system installed " + elog "Spotify like media-sound/spotify then you have to allow spicetify to read and write" + elog "to its install location like shown below." + elog "# chmod a+wr /opt/spotify/spotify-client" + elog "# chmod a+wr /opt/spotify/spotify-client/Apps -R" + elog "" + elog "Otherwise you can install spotify to a user modifiable location like as a flatpak:" + elog "https://github.com/khanhas/spicetify-cli/wiki/Installation#spotify-installed-from-flatpak" +}