cut v0.52.1
[Homebrew/homebrew-cask-versions.git] / Casks / totalspaces.rb
blobfbf15b7ec7d672f67afd459c1e680f14c9340bfc
1 cask :v1 => 'totalspaces' do
3   if MacOS.release <= :mountain_lion
4     version '1.2.11'
5     sha256 'fd54c6ea092f6fae2035745959ff6e080953e77ec6c76715e532b4b0352235d4'
7     url "http://downloads.binaryage.com/TotalSpaces-#{version}.zip"
9     pkg 'TotalSpaces.pkg'
11     uninstall :pkgutil => 'com.switchstep.totalspaces',
12               :quit    => 'com.binaryage.TotalSpaces'
13   else
14     version '2.2.9'
15     sha256 '66656dab328455906fd6e757bd966efac7d3a364b66155c847de55bfc57d8f14'
17     url "http://downloads.binaryage.com/TotalSpaces2-#{version}.dmg"
19     installer :manual => 'TotalSpaces2.app'
21     uninstall :pkgutil => 'com.binaryage.TotalSpaces2',
22               :script  => {
23                            :executable => 'TotalSpaces2 Uninstaller.app/Contents/MacOS/TotalSpaces2 Uninstaller',
24                            :args       => %w[--headless],
25                           },
26               :quit    => 'com.binaryage.TotalSpaces2'
27   end
29   homepage 'http://totalspaces.binaryage.com/'
30   license :commercial
32   uninstall :signal  => [
33                          ['INT', 'com.binaryage.totalspacescrashwatcher'],
34                          ['KILL', 'com.binaryage.totalspacescrashwatcher'],
35                         ]
36 end