slack-bin-2.5.2.ebuild 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. MY_PN="${PN/-bin/}"
  5. inherit eutils gnome2-utils unpacker
  6. DESCRIPTION="Team collaboration tool"
  7. HOMEPAGE="http://www.slack.com/"
  8. SRC_URI="https://downloads.slack-edge.com/linux_releases/${MY_PN}-desktop-${PV}-amd64.deb"
  9. LICENSE="no-source-code"
  10. SLOT="0"
  11. KEYWORDS="~amd64"
  12. IUSE=""
  13. RESTRICT="mirror"
  14. RDEPEND="dev-libs/atk:0
  15. dev-libs/expat:0
  16. dev-libs/glib:2
  17. dev-libs/nspr:0
  18. dev-libs/nss:0
  19. gnome-base/gconf:2
  20. media-libs/alsa-lib:0
  21. media-libs/fontconfig:1.0
  22. media-libs/freetype:2
  23. net-misc/curl:0
  24. net-print/cups:0
  25. sys-apps/dbus:0
  26. x11-libs/cairo:0
  27. x11-libs/gdk-pixbuf:2
  28. x11-libs/gtk+:2
  29. x11-libs/libX11:0
  30. x11-libs/libXcomposite:0
  31. x11-libs/libXcursor:0
  32. x11-libs/libXdamage:0
  33. x11-libs/libXext:0
  34. x11-libs/libXfixes:0
  35. x11-libs/libXi:0
  36. x11-libs/libxkbfile:0
  37. x11-libs/libXrandr:0
  38. x11-libs/libXrender:0
  39. x11-libs/libXScrnSaver:0
  40. x11-libs/libXtst:0
  41. x11-libs/pango:0"
  42. QA_PREBUILT="opt/slack/slack
  43. opt/slack/resources/app.asar.unpacked/node_modules/*
  44. opt/slack/libnode.so
  45. opt/slack/libffmpeg.so
  46. opt/slack/libCallsCore.so"
  47. S="${WORKDIR}"
  48. src_install() {
  49. insinto /usr/share/pixmaps
  50. doins usr/share/pixmaps/${MY_PN}.png
  51. newicon -s 512 usr/share/pixmaps/${MY_PN}.png ${MY_PN}.png
  52. domenu usr/share/applications/${MY_PN}.desktop
  53. insinto /opt/${MY_PN}
  54. doins -r usr/lib/${MY_PN}/.
  55. fperms +x /opt/${MY_PN}/${MY_PN}
  56. dosym /opt/${MY_PN}/${MY_PN} /usr/bin/${MY_PN}
  57. }
  58. pkg_preinst() {
  59. gnome2_icon_savelist
  60. }
  61. pkg_postinst() {
  62. gnome2_icon_cache_update
  63. }
  64. pkg_postrm() {
  65. gnome2_icon_cache_update
  66. }