forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
coconutbattery.rb
24 lines (21 loc) · 959 Bytes
/
coconutbattery.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
cask :v1 => 'coconutbattery' do
if MacOS.release <= :tiger
version '2.6.6'
sha256 '8d235b237e42754ceda26af2babc160fd23f890d0fe6d7780b86a8e9c6effe42'
url "http://www.coconut-flavour.com/downloads/coconutBattery_#{version}.zip"
elsif MacOS.release <= :snow_leopard
version '2.8'
sha256 'fcfc81214ff26afff9f5c6c7cdc455b23ac898b6918f864b641a9e31526692d4'
url "http://www.coconut-flavour.com/downloads/coconutBattery_#{version}.zip"
else
version '3.1.2'
sha256 'c055686223771c3a719f59518c46f18a4ca36d6e114700c6880394ce7e0e28ba'
url "http://www.coconut-flavour.com/downloads/coconutBattery_#{version.gsub('.','_')}.zip"
appcast 'http://updates.coconut-flavour.com/coconutBatteryIntel.xml',
:sha256 => '37968aee16f6fb0a705d68bfa2418083dd9768a4b5477ce8ec6e6b74ef26704c'
end
name 'coconutBattery'
homepage 'http://www.coconut-flavour.com/coconutbattery/'
license :bsd
app 'coconutBattery.app'
end