1 |
commit: def5f7a93c2ecff8e7c1c1d7addf7bf53c00eacc |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 17 21:36:54 2020 +0000 |
4 |
Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 17 21:37:33 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=def5f7a9 |
7 |
|
8 |
media-sound/spotify: 1.1.42 bump |
9 |
|
10 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
11 |
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org> |
12 |
|
13 |
media-sound/spotify/Manifest | 1 + |
14 |
media-sound/spotify/spotify-1.1.42.ebuild | 116 ++++++++++++++++++++++++++++++ |
15 |
2 files changed, 117 insertions(+) |
16 |
|
17 |
diff --git a/media-sound/spotify/Manifest b/media-sound/spotify/Manifest |
18 |
index b4952882946..57e6bc2a285 100644 |
19 |
--- a/media-sound/spotify/Manifest |
20 |
+++ b/media-sound/spotify/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST spotify-client_1.0.72.117.g6bd7cc73-35_i386.deb 95135550 BLAKE2B ad4587dd6b3c64a0398e0790203a7826e290a27542fa39ebbd6c7198d8ad1fd3fb06e8b030b64e1e61e0624ef20aafda08189266486cd073cb779ebff62ef502 SHA512 51d60f7592e5f31ea4b7e67736a85271cb48d4108459630da61c4ab67d2a470038240c1d6ff577280cb4498cf44f14d7bc7e0312f63d34265bcd1e70cd13142f |
23 |
DIST spotify-client_1.1.10.546.ge08ef575-19_amd64.deb 114975574 BLAKE2B 46da17c8ebccdc889b723ac6e9f5275dddec97d35142606ece32d1edb1ed288d1c517d41027de22da77421a76f8c00ea90ddc868b74dd46ba07cff60a581b12a SHA512 f004083eee00600a51e50d7dee03846293b5ccd6966786e91055564c7963917b9aaa917de41f299a0f5b7baecea5f466fb37722b8631743ff2ca15f43851f5f4 |
24 |
DIST spotify-client_1.1.26.501.gbe11e53b-15_amd64.deb 120102446 BLAKE2B 481686c9e1f7e8d7b68059ec5aad5f71ae1e59af80fa91903941afc2e0a91e2f957860bf96ce3ce4b19884f2548426269a9a2043c2985b4bbc82c5f091f5f2b8 SHA512 af9f1beafe0e4d2313326d1a55675550e8c3fcd5cd2dc0954127094c563048b98f74f669d99a10f0ef6e3b3405856bb9d6a2561644a434ab6bade9c812296963 |
25 |
+DIST spotify-client_1.1.42.622.gbd112320-37_amd64.deb 126293582 BLAKE2B 909d2cba7a2d2686a4e278e315658d8011d83f3eca3b5381fcd1df574d8e4223c3fb8508f417ec9f66b37740ac8b221a6d8cf753fc2cee47700b45a867556302 SHA512 a3fe98d69460ffd641df3219c2a3d164a33e2b52c86a56276e473dd5c3a43d6304df3b77fefcf0ca6c09cb6e2c8dacab65573cf7543725b6c8d402832149e122 |
26 |
|
27 |
diff --git a/media-sound/spotify/spotify-1.1.42.ebuild b/media-sound/spotify/spotify-1.1.42.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..4b9dc6ccaf5 |
30 |
--- /dev/null |
31 |
+++ b/media-sound/spotify/spotify-1.1.42.ebuild |
32 |
@@ -0,0 +1,116 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+inherit desktop pax-utils unpacker xdg |
38 |
+ |
39 |
+DESCRIPTION="Spotify is a social music platform" |
40 |
+HOMEPAGE="https://www.spotify.com/ch-de/download/previews/" |
41 |
+SRC_BASE="http://repository.spotify.com/pool/non-free/s/${PN}-client/" |
42 |
+BUILD_ID_AMD64="622.gbd112320-37" |
43 |
+SRC_URI="${SRC_BASE}${PN}-client_${PV}.${BUILD_ID_AMD64}_amd64.deb" |
44 |
+LICENSE="Spotify" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64" |
47 |
+IUSE="libnotify libressl systray pax_kernel pulseaudio" |
48 |
+RESTRICT="mirror strip" |
49 |
+ |
50 |
+BDEPEND=">=dev-util/patchelf-0.10" |
51 |
+RDEPEND=" |
52 |
+ dev-libs/nss |
53 |
+ dev-python/dbus-python |
54 |
+ dev-python/pygobject:3 |
55 |
+ libnotify? ( x11-libs/libnotify ) |
56 |
+ !libressl? ( dev-libs/openssl:0= ) |
57 |
+ libressl? ( dev-libs/libressl:0= ) |
58 |
+ media-libs/alsa-lib |
59 |
+ media-libs/fontconfig |
60 |
+ media-libs/harfbuzz |
61 |
+ media-libs/mesa[X(+)] |
62 |
+ net-misc/curl[ssl] |
63 |
+ net-print/cups[ssl] |
64 |
+ pulseaudio? ( media-sound/pulseaudio ) |
65 |
+ !pulseaudio? ( media-sound/apulse ) |
66 |
+ systray? ( gnome-extra/gnome-integration-spotify ) |
67 |
+ x11-libs/gtk+:2 |
68 |
+ app-accessibility/at-spi2-atk |
69 |
+ x11-libs/libXScrnSaver |
70 |
+ x11-libs/libXtst |
71 |
+ x11-libs/libSM |
72 |
+ x11-libs/libICE |
73 |
+" |
74 |
+ #sys-libs/glibc |
75 |
+ |
76 |
+S=${WORKDIR}/ |
77 |
+ |
78 |
+QA_PREBUILT=" |
79 |
+ opt/spotify/spotify-client/spotify |
80 |
+ opt/spotify/spotify-client/libEGL.so |
81 |
+ opt/spotify/spotify-client/libGLESv2.so |
82 |
+ opt/spotify/spotify-client/libcef.so |
83 |
+ opt/spotify/spotify-client/swiftshader/libEGL.so |
84 |
+ opt/spotify/spotify-client/swiftshader/libGLESv2.so |
85 |
+" |
86 |
+ |
87 |
+src_prepare() { |
88 |
+ # Fix desktop entry to launch spotify-dbus.py for systray integration |
89 |
+ if use systray ; then |
90 |
+ sed -i \ |
91 |
+ -e 's/spotify \%U/spotify-dbus.py \%U/g' \ |
92 |
+ usr/share/spotify/spotify.desktop || die "sed failed" |
93 |
+ fi |
94 |
+ default |
95 |
+ |
96 |
+ # Spotify links against libcurl-gnutls.so.4, which does not exist in Gentoo. |
97 |
+ patchelf --replace-needed libcurl-gnutls.so.4 libcurl.so.4 usr/bin/spotify \ |
98 |
+ || die "failed to patch libcurl library dependency" |
99 |
+} |
100 |
+ |
101 |
+src_install() { |
102 |
+ gunzip usr/share/doc/spotify-client/changelog.gz || die |
103 |
+ dodoc usr/share/doc/spotify-client/changelog |
104 |
+ |
105 |
+ SPOTIFY_PKG_HOME=usr/share/spotify |
106 |
+ insinto /usr/share/pixmaps |
107 |
+ doins ${SPOTIFY_PKG_HOME}/icons/*.png |
108 |
+ |
109 |
+ # install in /opt/spotify |
110 |
+ SPOTIFY_HOME=/opt/spotify/spotify-client |
111 |
+ insinto ${SPOTIFY_HOME} |
112 |
+ doins -r ${SPOTIFY_PKG_HOME}/* |
113 |
+ fperms +x ${SPOTIFY_HOME}/spotify |
114 |
+ |
115 |
+ dodir /usr/bin |
116 |
+ cat <<-EOF >"${D}"/usr/bin/spotify || die |
117 |
+ #! /bin/sh |
118 |
+ LD_LIBRARY_PATH="/usr/$(get_libdir)/apulse" \\ |
119 |
+ exec ${SPOTIFY_HOME}/spotify "\$@" |
120 |
+ EOF |
121 |
+ fperms +x /usr/bin/spotify |
122 |
+ |
123 |
+ local size |
124 |
+ for size in 16 22 24 32 48 64 128 256 512; do |
125 |
+ newicon -s ${size} "${S}${SPOTIFY_PKG_HOME}/icons/spotify-linux-${size}.png" \ |
126 |
+ "spotify-client.png" |
127 |
+ done |
128 |
+ domenu "${S}${SPOTIFY_PKG_HOME}/spotify.desktop" |
129 |
+ if use pax_kernel; then |
130 |
+ #create the headers, reset them to default, then paxmark -m them |
131 |
+ pax-mark C "${ED}${SPOTIFY_HOME}/${PN}" || die |
132 |
+ pax-mark z "${ED}${SPOTIFY_HOME}/${PN}" || die |
133 |
+ pax-mark m "${ED}${SPOTIFY_HOME}/${PN}" || die |
134 |
+ eqawarn "You have set USE=pax_kernel meaning that you intend to run" |
135 |
+ eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify" |
136 |
+ eqawarn "the ${PN} binary itself and this *may* lead to breakage! If" |
137 |
+ eqawarn "you suspect that ${PN} is being broken by this modification," |
138 |
+ eqawarn "please open a bug." |
139 |
+ fi |
140 |
+} |
141 |
+ |
142 |
+pkg_postinst() { |
143 |
+ xdg_pkg_postinst |
144 |
+ |
145 |
+ ewarn "If Spotify crashes after an upgrade its cache may be corrupt." |
146 |
+ ewarn "To remove the cache:" |
147 |
+ ewarn "rm -rf ~/.cache/spotify" |
148 |
+} |