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-01 03:33:53 +08:00
|
|
|
version '2.69.0'
|
|
|
|
sha256 '6588e8723ce53944b80ee6bbb264e912500c617f543330652b61a9875cbbbb07'
|
2015-12-26 04:57:40 +08:00
|
|
|
appcast 'https://github.com/kovidgoyal/calibre/releases.atom',
|
2016-10-01 03:33:53 +08:00
|
|
|
checkpoint: '2d506c52541e006aa3dbe59bfc386806a4eceaa87c44fd7152cc2916d41f104f'
|
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-10-16 05:17:38 +08:00
|
|
|
license :gpl
|
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
|