Skip to content

Commit

Permalink
Add libreoffice-still 5.2.5 (Homebrew#3271)
Browse files Browse the repository at this point in the history
  • Loading branch information
neutric authored and miccal committed Feb 4, 2017
1 parent 467370b commit 9ee50a9
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions Casks/libreoffice-still.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
cask 'libreoffice-still' do
version '5.2.5'
sha256 'cce4843e8bfe03cf1524eb4a994bb18254091671152a9ae9466dda55082f1319'

# documentfoundation.org was verified as official when first introduced to the cask
url "http://download.documentfoundation.org/libreoffice/stable/#{version}/mac/x86_64/LibreOffice_#{version}_MacOS_x86-64.dmg"
name 'LibreOffice Still'
homepage 'https://www.libreoffice.org/download/libreoffice-still/'
gpg "#{url}.asc", key_id: 'c2839ecad9408fbe9531c3e9f434a1efafeeaea3'

depends_on macos: '>= :mountain_lion'

app 'LibreOffice.app'
binary "#{appdir}/LibreOffice.app/Contents/MacOS/gengal"
binary "#{appdir}/LibreOffice.app/Contents/MacOS/regmerge"
binary "#{appdir}/LibreOffice.app/Contents/MacOS/regview"
binary "#{appdir}/LibreOffice.app/Contents/MacOS/senddoc"
binary "#{appdir}/LibreOffice.app/Contents/MacOS/ui-previewer"
binary "#{appdir}/LibreOffice.app/Contents/MacOS/uno"
binary "#{appdir}/LibreOffice.app/Contents/MacOS/unopkg"
binary "#{appdir}/LibreOffice.app/Contents/MacOS/urelibs"
binary "#{appdir}/LibreOffice.app/Contents/MacOS/uri-encode"
binary "#{appdir}/LibreOffice.app/Contents/MacOS/xpdfimport"
# shim script (https://github.com/caskroom/homebrew-cask/issues/18809)
shimscript = "#{staged_path}/soffice.wrapper.sh"
binary shimscript, target: 'soffice'

preflight do
IO.write shimscript, <<-EOS.undent
#!/bin/sh
'#{appdir}/LibreOffice.app/Contents/MacOS/soffice' "$@"
EOS
set_permissions shimscript, '+x'
end

zap delete: [
'~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/org.libreoffice.script.sfl',
'~/Library/Application Support/LibreOffice',
]
end

0 comments on commit 9ee50a9

Please sign in to comment.