diff --git a/net-im/slack/Manifest b/net-im/slack/Manifest index 8852cae..d28ab26 100644 --- a/net-im/slack/Manifest +++ b/net-im/slack/Manifest @@ -1,2 +1,3 @@ DIST slack-desktop-4.42.117-amd64.deb 81618778 BLAKE2B 3afefe4aa98cc99f63c4afe2ed2b454572751093230e0ba507e92bd9ad74b16e272f59c715e93b028db2476e5fdf1d6ef08c9f6c60c24fe1391ac4843356be70 SHA512 0b77efd5c00afff16d889cbe924f6aff03c642d23c8845c1185e7da77cce8815261e0662e660e55072fb542f8c34f26dd0fb1a3e29a5c6db5424ce19de602c20 DIST slack-desktop-4.43.44-amd64.deb 83774102 BLAKE2B 0187049660c7a2f73338cd1fa9e1d7f87b728ea2b20fc316f63b3682cbedf146b4df7fcf3bf17f9b58c6cd7ded141dbad19f45fe89ae02aca67a0988690bfb97 SHA512 4cd0bb56fef6fb721a7c8336bd0900827f8fcd296e1be817147de530f7d97d0d4f8e746db7e57d88b597fc1295699d85699e57ff1199cf9c56883483b394de72 +DIST slack-desktop-4.43.49-amd64.deb 83769898 BLAKE2B 9895a026de3fca6193688222b8a298680c334f02b6db69e05d8de208ce7e79bd76ec9d0103cf6f267d922413a801ce97a984503cbaf995b5497a197814736751 SHA512 eb54e0e8f45d6d9c6c3ce4e707c132acb64a3cafcd8285d0ea9080572935631751d7a04d144f4c83f20d77db36812e816148e572f5a45c006f2b820af6839e27 diff --git a/net-im/slack/slack-4.43.49.ebuild b/net-im/slack/slack-4.43.49.ebuild new file mode 100644 index 0000000..98ccf7e --- /dev/null +++ b/net-im/slack/slack-4.43.49.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MULTILIB_COMPAT=(abi_x86_64) + +inherit desktop multilib-build optfeature pax-utils unpacker xdg + +DESCRIPTION="Team collaboration tool" +HOMEPAGE="https://slack.com" +SRC_URI="https://downloads.slack-edge.com/desktop-releases/linux/x64/${PV}/${PN}-desktop-${PV}-amd64.deb" +S="${WORKDIR}" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="-* ~amd64" +IUSE="appindicator +seccomp suid wayland" +RESTRICT="bindist mirror" + +RDEPEND="app-accessibility/at-spi2-core:2[${MULTILIB_USEDEP}] + dev-libs/expat:0[${MULTILIB_USEDEP}] + dev-libs/glib:2[${MULTILIB_USEDEP}] + dev-libs/nspr:0[${MULTILIB_USEDEP}] + dev-libs/nss:0[${MULTILIB_USEDEP}] + wayland? ( dev-libs/wayland[${MULTILIB_USEDEP}] ) + media-libs/alsa-lib:0[${MULTILIB_USEDEP}] + media-libs/mesa:0[${MULTILIB_USEDEP}] + net-print/cups:0[${MULTILIB_USEDEP}] + sys-apps/dbus:0[${MULTILIB_USEDEP}] + x11-libs/cairo:0[${MULTILIB_USEDEP}] + x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}] + x11-libs/gtk+:3[${MULTILIB_USEDEP}] + x11-libs/libdrm:0[${MULTILIB_USEDEP}] + x11-libs/libX11:0[${MULTILIB_USEDEP}] + x11-libs/libxcb:0/1.12[${MULTILIB_USEDEP}] + x11-libs/libXcomposite:0[${MULTILIB_USEDEP}] + x11-libs/libXdamage:0[${MULTILIB_USEDEP}] + x11-libs/libXext:0[${MULTILIB_USEDEP}] + x11-libs/libXfixes:0[${MULTILIB_USEDEP}] + x11-libs/libxkbcommon:0[${MULTILIB_USEDEP}] + x11-libs/libxkbfile:0[${MULTILIB_USEDEP}] + x11-libs/libXrandr:0[${MULTILIB_USEDEP}] + x11-libs/pango:0[${MULTILIB_USEDEP}] + appindicator? ( dev-libs/libayatana-appindicator )" + +QA_PREBUILT="opt/slack/chrome-sandbox + opt/slack/chrome_crashpad_handler + opt/slack/libEGL.so + opt/slack/libGLESv2.so + opt/slack/libffmpeg.so + opt/slack/libvk_swiftshader.so + opt/slack/libvulkan.so.1 + opt/slack/resources/app.asar.unpacked/node_modules/* + opt/slack/slack + opt/slack/swiftshader/libEGL.so + opt/slack/swiftshader/libGLESv2.so" + +src_prepare() { + default + + # remove hardcoded path, logging noise (wrt 694058, 711494) + sed -i -e '/Icon/s|/usr/share/pixmaps/slack.png|slack|' \ + -e '/Exec/s|slack|slack -s|' \ + usr/share/applications/slack.desktop || + die "sed failed in Icon for slack.desktop" + + if use appindicator; then + sed -i '/Exec/s|=|=env XDG_CURRENT_DESKTOP=Unity |' \ + usr/share/applications/slack.desktop || + die "sed failed for appindicator" + fi + + if ! use seccomp; then + sed -i '/Exec/s/%U/%U --disable-seccomp-filter-sandbox/' \ + usr/share/applications/slack.desktop || + die "sed failed for seccomp" + fi + + if use wayland; then + sed -i '/Exec/s/%U/%U --enable-features=WebRTCPipeWireCapturer/' \ + usr/share/applications/slack.desktop || + die "sed failed for wayland" + fi + + rm usr/lib/slack/LICENSE{,S-linux.json} || + die "rm licenses failed" +} + +src_install() { + doicon usr/share/pixmaps/slack.png + doicon -s 512 usr/share/pixmaps/slack.png + domenu usr/share/applications/slack.desktop + + insinto /opt # wrt 720134 + cp -a usr/lib/slack "${ED}"/opt || die "cp failed" + + use suid && fperms u+s /opt/slack/chrome-sandbox # wrt 713094 + dosym ../../opt/slack/slack usr/bin/slack + + pax-mark -m "${ED}"/opt/slack/slack + + # https://bugs.gentoo.org/898912 + if use appindicator; then + dosym ../../usr/lib64/libayatana-appindicator3.so /opt/slack/libappindicator3.so + fi +} + +pkg_postinst() { + optfeature "storing passwords via gnome-keyring" app-crypt/libsecret + + xdg_pkg_postinst +}