From 60b56ff450814a7c23221713ef1c572ee95d9ab0 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Thu, 16 Aug 2018 01:33:07 +0800 Subject: [PATCH] net-im/slack: initial import --- packages/net-im/slack/slack-3.2.1.exheres-0 | 90 +++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 packages/net-im/slack/slack-3.2.1.exheres-0 diff --git a/packages/net-im/slack/slack-3.2.1.exheres-0 b/packages/net-im/slack/slack-3.2.1.exheres-0 new file mode 100644 index 00000000..7a5877d7 --- /dev/null +++ b/packages/net-im/slack/slack-3.2.1.exheres-0 @@ -0,0 +1,90 @@ +# Copyright 2018 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +require gtk-icon-cache freedesktop-desktop freedesktop-mime + +SUMMARY="Team collaboration tool" +HOMEPAGE="http://www.slack.com/" +DOWNLOADS="https://downloads.slack-edge.com/linux_releases/${PN/-bin/}-desktop-${PV}-amd64.deb" + +LICENCES="all-rights-reserved" +SLOT="0" +PLATFORMS="~amd64 -*" +MYOPTIONS="" + +RESTRICT="mirror" + +DEPENDENCIES=" + run: + dev-libs/atk + dev-libs/expat + dev-libs/glib:2 + dev-libs/libsecret:1 + dev-libs/nspr + dev-libs/nss + gnome-platform/GConf:2 + media-libs/fontconfig + media-libs/freetype:2 + net-misc/curl + net-print/cups + sys-apps/dbus + sys-sound/alsa-lib + x11-libs/cairo + x11-libs/gdk-pixbuf:2.0 + x11-libs/gtk+:3 + x11-libs/libX11 + x11-libs/libXScrnSaver + x11-libs/libXcomposite + x11-libs/libXcursor + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libXtst + x11-libs/libxcb + x11-libs/libxkbfile + x11-libs/pango +" + +BUGS_TO="hasufell@posteo.de" + +WORK=${WORKBASE} + +pkg_setup() { + exdirectory --allow /opt +} + +src_unpack() { + default + unpack ./data.tar.xz +} + +src_install() { + insinto /usr/share/pixmaps + doins usr/share/pixmaps/slack.png + insinto /usr/share/icons/hicolor/512x512/apps + doins usr/share/pixmaps/slack.png + insinto /usr/share/applications + doins usr/share/applications/slack.desktop + + insinto /opt/slack + doins -r usr/lib/slack/. + edo chmod +x "${IMAGE}"/opt/slack/slack + dodir /usr/$(exhost --target)/bin + dosym ../../../opt/slack/slack /usr/$(exhost --target)/bin/slack +} + +pkg_postinst() { + freedesktop-mime_pkg_postinst + freedesktop-desktop_pkg_postinst + gtk-icon-cache_pkg_postinst +} + +pkg_postrm() { + freedesktop-mime_pkg_postrm + freedesktop-desktop_pkg_postrm + gtk-icon-cache_pkg_postrm +} +