# to test # brew cask install --force libreoffice libreoffice-fr # file is there : # /opt/homebrew/Library/Taps/caskroom/homebrew-cask/Casks/libreoffice-fr.rb cask 'libreoffice-fr' do version '5.2.3' sha256 'd841458189b90ae5f3e208620707833b4def2e9d8c2be71ae395ec25bec1908c' url "http://download.documentfoundation.org/libreoffice/stable/#{version}/mac/x86_64/LibreOffice_#{version}_MacOS_x86-64_langpack_fr.dmg" name 'LibreOffice_langpack_fr' homepage 'https://www.libreoffice.org/' gpg "#{url}.asc", key_id: 'c2839ecad9408fbe9531c3e9f434a1efafeeaea3' depends_on cask: 'libreoffice' preflight do system '/usr/bin/sudo', '-E', '--', '/usr/bin/tar', '-C', '/Applications/LibreOffice.app/', '-xjf', "#{staged_path}/LibreOffice Language Pack.app/Contents/tarball.tar.bz2" system '/usr/bin/sudo', '-E', '--', '/usr/bin/touch', '/Applications/LibreOffice.app/Contents/Resources/extensions' end end