Advertisement
bunam

brew cask install --force libreoffice-fr

Nov 25th, 2016
611
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.93 KB | None | 0 0
  1. # to test
  2. # brew cask install --force libreoffice libreoffice-fr
  3.  
  4. # file is there :
  5. # /opt/homebrew/Library/Taps/caskroom/homebrew-cask/Casks/libreoffice-fr.rb
  6.  
  7. cask 'libreoffice-fr' do
  8.   version '5.2.3'
  9.   sha256 'd841458189b90ae5f3e208620707833b4def2e9d8c2be71ae395ec25bec1908c'
  10.  
  11.   url "http://download.documentfoundation.org/libreoffice/stable/#{version}/mac/x86_64/LibreOffice_#{version}_MacOS_x86-64_langpack_fr.dmg"
  12.   name 'LibreOffice_langpack_fr'
  13.   homepage 'https://www.libreoffice.org/'
  14.   gpg "#{url}.asc",
  15.     key_id: 'c2839ecad9408fbe9531c3e9f434a1efafeeaea3'
  16.  
  17.   depends_on cask: 'libreoffice'
  18.  
  19.   preflight do
  20.     system '/usr/bin/sudo', '-E', '--', '/usr/bin/tar', '-C', '/Applications/LibreOffice.app/', '-xjf', "#{staged_path}/LibreOffice Language Pack.app/Contents/tarball.tar.bz2"
  21.     system '/usr/bin/sudo', '-E', '--', '/usr/bin/touch', '/Applications/LibreOffice.app/Contents/Resources/extensions'
  22.   end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement