2015-12-18 09:15:28 +08:00
|
|
|
cask 'calibre' do
|
2016-08-08 03:12:48 +08:00
|
|
|
if MacOS.version <= :lion
|
2015-06-17 22:48:32 +08:00
|
|
|
version '1.48.0'
|
|
|
|
sha256 '0533283965fbc9a6618d0b27c85bdf3671fe75ff0e89eeff406fe1457ee61b14'
|
|
|
|
else
|
2016-10-15 01:39:04 +08:00
|
|
|
version '2.70.0'
|
|
|
|
sha256 '08a6aee3abb5eb71fe36de91db0ec5393eb52850cacb80d3fc557425eac1a043'
|
2015-12-26 04:57:40 +08:00
|
|
|
appcast 'https://github.com/kovidgoyal/calibre/releases.atom',
|
2016-10-15 01:30:04 +08:00
|
|
|
checkpoint: '67980993effbfe0d585b55a6a7a5cbd6209db5df3032db65e819b43be038f803'
|
2015-06-17 22:48:32 +08:00
|
|
|
end
|
2014-06-27 08:01:02 +08:00
|
|
|
|
2016-01-12 16:14:42 +08:00
|
|
|
url "https://download.calibre-ebook.com/#{version}/calibre-#{version}.dmg"
|
2015-02-28 23:44:37 +08:00
|
|
|
name 'calibre'
|
2016-01-12 16:14:42 +08:00
|
|
|
homepage 'https://calibre-ebook.com/'
|
2014-06-27 08:01:02 +08:00
|
|
|
|
2014-09-16 00:05:21 +08:00
|
|
|
app 'calibre.app'
|
2016-06-01 03:23:21 +08:00
|
|
|
binary "#{appdir}/calibre.app/Contents/MacOS/calibre"
|
|
|
|
binary "#{appdir}/calibre.app/Contents/MacOS/calibre-complete"
|
|
|
|
binary "#{appdir}/calibre.app/Contents/MacOS/calibre-customize"
|
|
|
|
binary "#{appdir}/calibre.app/Contents/MacOS/calibre-debug"
|
|
|
|
binary "#{appdir}/calibre.app/Contents/MacOS/calibre-parallel"
|
|
|
|
binary "#{appdir}/calibre.app/Contents/MacOS/calibre-server"
|
|
|
|
binary "#{appdir}/calibre.app/Contents/MacOS/calibre-smtp"
|
|
|
|
binary "#{appdir}/calibre.app/Contents/MacOS/calibredb"
|
|
|
|
binary "#{appdir}/calibre.app/Contents/MacOS/ebook-convert"
|
|
|
|
binary "#{appdir}/calibre.app/Contents/MacOS/ebook-device"
|
|
|
|
binary "#{appdir}/calibre.app/Contents/MacOS/ebook-edit"
|
|
|
|
binary "#{appdir}/calibre.app/Contents/MacOS/ebook-meta"
|
|
|
|
binary "#{appdir}/calibre.app/Contents/MacOS/ebook-polish"
|
|
|
|
binary "#{appdir}/calibre.app/Contents/MacOS/ebook-viewer"
|
|
|
|
binary "#{appdir}/calibre.app/Contents/MacOS/fetch-ebook-metadata"
|
|
|
|
binary "#{appdir}/calibre.app/Contents/MacOS/lrf2lrs"
|
|
|
|
binary "#{appdir}/calibre.app/Contents/MacOS/lrfviewer"
|
|
|
|
binary "#{appdir}/calibre.app/Contents/MacOS/lrs2lrf"
|
|
|
|
binary "#{appdir}/calibre.app/Contents/MacOS/markdown-calibre"
|
|
|
|
binary "#{appdir}/calibre.app/Contents/MacOS/web2disk"
|
2015-10-14 23:29:52 +08:00
|
|
|
|
2016-01-18 09:27:20 +08:00
|
|
|
zap delete: [
|
|
|
|
'~/Library/Preferences/net.kovidgoyal.calibre.plist',
|
|
|
|
'~/Library/Preferences/calibre',
|
|
|
|
'~/Library/Caches/calibre',
|
|
|
|
]
|
2013-05-08 01:04:43 +08:00
|
|
|
end
|