slack-bin-2.1.2.ebuild 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit unpacker gnome2-utils
  5. QA_PREBUILT="
  6. opt/slack/slack
  7. opt/slack/resources/app.asar.unpacked/node_modules/*
  8. opt/slack/libnode.so
  9. opt/slack/libgcrypt.so.11
  10. opt/slack/libffmpeg.so
  11. opt/slack/libCallsCore.so
  12. "
  13. DESCRIPTION="Team collaboration tool"
  14. HOMEPAGE="http://www.slack.com/"
  15. MY_PN="${PN/-bin/}"
  16. BASE_URI="https://downloads.slack-edge.com/linux_releases/${MY_PN}-desktop-${PV}-_arch_.deb"
  17. SRC_URI="
  18. x86? ( ${BASE_URI/_arch_/i386} )
  19. amd64? ( ${BASE_URI/_arch_/amd64} )
  20. "
  21. LICENSE="MIT Apache-2.0 BSD ISC LGPL-2 AFL-2.1 public-domain WTFPL-2 Artistic-2 no-source-code"
  22. SLOT="0"
  23. KEYWORDS="~amd64 ~x86"
  24. IUSE=""
  25. RESTRICT="mirror"
  26. RDEPEND="x11-libs/gtk+:2
  27. x11-libs/libnotify
  28. x11-libs/libXtst
  29. x11-libs/pango
  30. x11-libs/cairo[xcb]
  31. media-libs/alsa-lib
  32. media-libs/harfbuzz[graphite]
  33. media-libs/libcanberra[gtk]
  34. dev-libs/nss
  35. dev-libs/glib:2
  36. dev-libs/atk
  37. gnome-base/libgnome-keyring
  38. gnome-base/gconf:2
  39. sys-apps/dbus
  40. net-print/cups[ssl]
  41. net-misc/curl
  42. virtual/udev
  43. virtual/libc
  44. virtual/libffi
  45. "
  46. DEPEND="${RDEPEND}"
  47. S="${WORKDIR}"
  48. pkg_preinst() {
  49. gnome2_icon_savelist
  50. }
  51. src_install() {
  52. insinto /usr/share/pixmaps
  53. doins usr/share/pixmaps/${MY_PN}.png
  54. newicon -s 512 usr/share/pixmaps/${MY_PN}.png ${MY_PN}.png
  55. domenu usr/share/applications/${MY_PN}.desktop
  56. insinto /opt/${MY_PN}
  57. doins -r usr/lib/${MY_PN}/*
  58. fperms +x /opt/${MY_PN}/${MY_PN}
  59. dosym /opt/${MY_PN}/${MY_PN} /usr/bin/${MY_PN}
  60. }
  61. pkg_postinst() {
  62. gnome2_icon_cache_update
  63. }