forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libreoffice.rb
21 lines (19 loc) · 912 Bytes
/
libreoffice.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
cask :v1 => 'libreoffice' do
if Hardware::CPU.is_32_bit? || MacOS.release < :mountain_lion
version '4.3.7'
sha256 '2964a952ab633426df402de2f128cf788354ac622b7c30b25209d185d17617ec'
# documentfoundation.org is the official download host per the vendor homepage
url "https://download.documentfoundation.org/libreoffice/stable/#{version}/mac/x86/LibreOffice_#{version}_MacOS_x86.dmg"
else
version '5.0.2'
sha256 'ac06871f2627b2000ce61892c98633c97865927bb211a1a394aafa179abdb46f'
# documentfoundation.org is the official download host per the vendor homepage
url "https://download.documentfoundation.org/libreoffice/stable/#{version}/mac/x86_64/LibreOffice_#{version}_MacOS_x86-64.dmg"
end
gpg "#{url}.asc",
:key_id => 'c2839ecad9408fbe9531c3e9f434a1efafeeaea3'
name 'LibreOffice'
homepage 'https://www.libreoffice.org/'
license :mpl
app 'LibreOffice.app'
end