<commit_before>#
# Cookbook Name:: desktop
# Recipe:: slack
#
# Copyright 2015, <NAME>
#
# All rights reserved - Do Not Redistribute
#

include_recipe 'apt'
include_recipe 'desktop::libgcrypt11'

package [ 
         'gconf2', 
         'gconf-service', 
         'libgtk2.0-0', 
         'libudev1', 
         'libgcrypt11',
         'libnotify4', 
         'libxtst6', 
         'libnss3', 
         'python', 
         'gvfs-bin', 
         'xdg-utils',
         'apt-transport-https'
        ] do
  action :install
end

slack_deb_path = "#{Chef::Config[:file_cache_path]}/slack-desktop-amd64.deb"

remote_file slack_deb_path do
  source 'https://slack-ssb-updates.global.ssl.fastly.net/linux_releases/slack-desktop-1.2.5-amd64.deb'
  checksum '2368e2449f08272d8ce38a423f44ed0cd35c1e77ca3c0525f069d0790b6ec58f'
end

dpkg_package slack_deb_path<commit_msg>Update for non-beta slack releases<commit_after>#
# Cookbook Name:: desktop
# Recipe:: slack
#
# Copyright 2015, <NAME>
#
# All rights reserved - Do Not Redistribute
#

include_recipe 'apt'
include_recipe 'desktop::libgcrypt11'

package [ 
         'gconf2', 
         'gconf-service', 
         'libgtk2.0-0', 
         'libudev1', 
         'libgcrypt11',
         'libnotify4', 
         'libxtst6', 
         'libnss3', 
         'python', 
         'gvfs-bin', 
         'xdg-utils',
         'apt-transport-https',
         'libgnome-keyring0',
        ] do
  action :install
end

# Slack doesn't have official Ubuntu/Trusty repos, so use Jessie everywhere.
apt_repository 'slacktechnologies_slack' do
  components ['main']
  distribution 'jessie'
  key 'https://packagecloud.io/slacktechnologies/slack/gpgkey'
  uri "https://packagecloud.io/slacktechnologies/slack/debian/"
end

package 'slack-desktop'
{'fraction_non_alphanumeric': 0.12287655719139298, 'fraction_numerical': 0.0464326160815402, 'mean_word_length': 2.7278481012658227, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7612142', 'n_tokens_mistral': 706, 'n_tokens_neox': 624, 'n_words': 112}