1 |
commit: 9c85489fe25a2cb24ac97e52af5a9118af326c03 |
2 |
Author: Vladimir Pavljuchenkov (SpiderX) <spiderx <AT> spiderx <DOT> dp <DOT> ua> |
3 |
AuthorDate: Sun Aug 21 15:40:04 2022 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 31 08:39:14 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c85489f |
7 |
|
8 |
net-im/slack: version bump to 4.27.156, wrt #836874, #772137, #853964 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/836874 |
11 |
Closes: https://bugs.gentoo.org/772137 |
12 |
Closes: https://bugs.gentoo.org/853964 |
13 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
14 |
Signed-off-by: Vladimir Pavljuchenkov <spiderx <AT> spiderx.dp.ua> |
15 |
Closes: https://github.com/gentoo/gentoo/pull/26950 |
16 |
Closes: https://github.com/gentoo/gentoo/pull/26744 |
17 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
18 |
|
19 |
net-im/slack/Manifest | 1 + |
20 |
net-im/slack/slack-4.27.156.ebuild | 110 +++++++++++++++++++++++++++++++++++++ |
21 |
2 files changed, 111 insertions(+) |
22 |
|
23 |
diff --git a/net-im/slack/Manifest b/net-im/slack/Manifest |
24 |
index 4d3ec67f0e85..6d318d8ec972 100644 |
25 |
--- a/net-im/slack/Manifest |
26 |
+++ b/net-im/slack/Manifest |
27 |
@@ -1 +1,2 @@ |
28 |
DIST slack-desktop-4.23.0-amd64.deb 65626830 BLAKE2B a4b49e71b956e74a915ea9f2e26272d8ef15191c92479b1ed2615108569cc4c6cb97de53ff8d4099e4348b81c97447c0edfc1b0fbeacda3833953de9463e877f SHA512 f7885d78f712624ec8c3a26787a1876f4c6a35fedeec824ed4b1d7cc57dd23b9402254a7cfa9f585c3869a920d6fcfc868b9875a477fde1eab9d42a01d43d550 |
29 |
+DIST slack-desktop-4.27.156-amd64.deb 66938030 BLAKE2B b7d457fcb6a2518eaea7efc4d7b43f01f8c1da8a1218d3c2c2c14e195004102be344c6f4e2b60dd4f4677e53ea976cb7b0b102e3e0eec385df881eecdee4a7cd SHA512 b7aa66136a330536393a157843e02e4cfec5eca74431304b1b166e80eaadf41e8b12ad69af8616032042237cb9a38414f9bf1b76701def1985edd0a5570781f9 |
30 |
|
31 |
diff --git a/net-im/slack/slack-4.27.156.ebuild b/net-im/slack/slack-4.27.156.ebuild |
32 |
new file mode 100644 |
33 |
index 000000000000..456821a8ac4a |
34 |
--- /dev/null |
35 |
+++ b/net-im/slack/slack-4.27.156.ebuild |
36 |
@@ -0,0 +1,110 @@ |
37 |
+# Copyright 1999-2022 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=8 |
41 |
+ |
42 |
+MULTILIB_COMPAT=( abi_x86_64 ) |
43 |
+ |
44 |
+inherit desktop multilib-build optfeature pax-utils unpacker xdg |
45 |
+ |
46 |
+DESCRIPTION="Team collaboration tool" |
47 |
+HOMEPAGE="https://slack.com" |
48 |
+SRC_URI="https://downloads.slack-edge.com/releases/linux/${PV}/prod/x64/${PN}-desktop-${PV}-amd64.deb" |
49 |
+ |
50 |
+LICENSE="all-rights-reserved" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="-* ~amd64" |
53 |
+IUSE="appindicator +seccomp suid wayland" |
54 |
+RESTRICT="bindist mirror" |
55 |
+ |
56 |
+RDEPEND="app-accessibility/at-spi2-atk:2[${MULTILIB_USEDEP}] |
57 |
+ app-accessibility/at-spi2-core:2[${MULTILIB_USEDEP}] |
58 |
+ dev-libs/atk:0[${MULTILIB_USEDEP}] |
59 |
+ dev-libs/expat:0[${MULTILIB_USEDEP}] |
60 |
+ dev-libs/glib:2[${MULTILIB_USEDEP}] |
61 |
+ dev-libs/nspr:0[${MULTILIB_USEDEP}] |
62 |
+ dev-libs/nss:0[${MULTILIB_USEDEP}] |
63 |
+ media-libs/alsa-lib:0[${MULTILIB_USEDEP}] |
64 |
+ media-libs/mesa:0[${MULTILIB_USEDEP}] |
65 |
+ net-print/cups:0[${MULTILIB_USEDEP}] |
66 |
+ sys-apps/dbus:0[${MULTILIB_USEDEP}] |
67 |
+ x11-libs/cairo:0[${MULTILIB_USEDEP}] |
68 |
+ x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}] |
69 |
+ x11-libs/gtk+:3[${MULTILIB_USEDEP}] |
70 |
+ x11-libs/libdrm:0[${MULTILIB_USEDEP}] |
71 |
+ x11-libs/libX11:0[${MULTILIB_USEDEP}] |
72 |
+ x11-libs/libxcb:0/1.12[${MULTILIB_USEDEP}] |
73 |
+ x11-libs/libXcomposite:0[${MULTILIB_USEDEP}] |
74 |
+ x11-libs/libXdamage:0[${MULTILIB_USEDEP}] |
75 |
+ x11-libs/libXext:0[${MULTILIB_USEDEP}] |
76 |
+ x11-libs/libXfixes:0[${MULTILIB_USEDEP}] |
77 |
+ x11-libs/libxkbcommon:0[${MULTILIB_USEDEP}] |
78 |
+ x11-libs/libxkbfile:0[${MULTILIB_USEDEP}] |
79 |
+ x11-libs/libXrandr:0[${MULTILIB_USEDEP}] |
80 |
+ x11-libs/pango:0[${MULTILIB_USEDEP}] |
81 |
+ appindicator? ( dev-libs/libappindicator:3[${MULTILIB_USEDEP}] )" |
82 |
+ |
83 |
+QA_PREBUILT="opt/slack/chrome-sandbox |
84 |
+ opt/slack/chrome_crashpad_handler |
85 |
+ opt/slack/libEGL.so |
86 |
+ opt/slack/libGLESv2.so |
87 |
+ opt/slack/libffmpeg.so |
88 |
+ opt/slack/libvk_swiftshader.so |
89 |
+ opt/slack/libvulkan.so.1 |
90 |
+ opt/slack/resources/app.asar.unpacked/node_modules/* |
91 |
+ opt/slack/slack |
92 |
+ opt/slack/swiftshader/libEGL.so |
93 |
+ opt/slack/swiftshader/libGLESv2.so" |
94 |
+ |
95 |
+S="${WORKDIR}" |
96 |
+ |
97 |
+src_prepare() { |
98 |
+ default |
99 |
+ |
100 |
+ # remove hardcoded path, logging noise (wrt 694058, 711494) |
101 |
+ sed -i -e '/Icon/s|/usr/share/pixmaps/slack.png|slack|' \ |
102 |
+ -e '/Exec/s|slack|slack -s|' \ |
103 |
+ usr/share/applications/slack.desktop \ |
104 |
+ || die "sed failed in Icon for slack.desktop" |
105 |
+ |
106 |
+ if use appindicator ; then |
107 |
+ sed -i '/Exec/s|=|=env XDG_CURRENT_DESKTOP=Unity |' \ |
108 |
+ usr/share/applications/slack.desktop \ |
109 |
+ || die "sed failed for appindicator" |
110 |
+ fi |
111 |
+ |
112 |
+ if ! use seccomp ; then |
113 |
+ sed -i '/Exec/s/%U/%U --disable-seccomp-filter-sandbox/' \ |
114 |
+ usr/share/applications/slack.desktop \ |
115 |
+ || die "sed failed for seccomp" |
116 |
+ fi |
117 |
+ |
118 |
+ if use wayland ; then |
119 |
+ sed -i '/Exec/s/%U/%U --enable-features=WebRTCPipeWireCapturer/' \ |
120 |
+ usr/share/applications/slack.desktop \ |
121 |
+ || die "sed failed for wayland" |
122 |
+ fi |
123 |
+ |
124 |
+ rm usr/lib/slack/LICENSE{,S-linux.json} \ |
125 |
+ || die "rm licenses failed" |
126 |
+} |
127 |
+ |
128 |
+src_install() { |
129 |
+ doicon usr/share/pixmaps/slack.png |
130 |
+ doicon -s 512 usr/share/pixmaps/slack.png |
131 |
+ domenu usr/share/applications/slack.desktop |
132 |
+ |
133 |
+ insinto /opt # wrt 720134 |
134 |
+ cp -a usr/lib/slack "${ED}"/opt || die "cp failed" |
135 |
+ |
136 |
+ use suid && fperms u+s /opt/slack/chrome-sandbox # wrt 713094 |
137 |
+ dosym ../../opt/slack/slack usr/bin/slack |
138 |
+ |
139 |
+ pax-mark -m "${ED}"/opt/slack/slack |
140 |
+} |
141 |
+ |
142 |
+pkg_postinst() { |
143 |
+ optfeature "storing passwords via gnome-keyring" app-crypt/libsecret |
144 |
+ |
145 |
+ xdg_pkg_postinst |
146 |
+} |