forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libreoffice.rb
20 lines (18 loc) · 891 Bytes
/
libreoffice.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
cask :v1 => 'libreoffice' do
if Hardware::CPU.is_32_bit? or MacOS.release < :mountain_lion
version '4.3.5'
sha256 '0121e87396a880884a6fac02e7799fe5bc4cbfe0e346a60aa21176acbd44602f'
# 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 '4.4.0'
sha256 '297bc7952db491feee8d1823ff424e8d6e4ccdcddc9b66a37c99d32c6b19016c'
# 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'
homepage 'https://www.libreoffice.org/'
license :oss
app 'LibreOffice.app'
end