homebrew-cask/Casks/calibre.rb

21 lines
724 B
Ruby

cask :v1 => 'calibre' do
if MacOS.release < :mountain_lion
version '1.48.0'
sha256 '0533283965fbc9a6618d0b27c85bdf3671fe75ff0e89eeff406fe1457ee61b14'
url "http://download.calibre-ebook.com/#{version}/calibre-#{version}.dmg"
else
version '2.31.0'
sha256 'f46e1676bdc74249c98fa3bd54cf8666e3154b6e8faa16e52490b1d652420b35'
# github.com is an official download host per the vendor homepage, and a faster mirror than the main one
url "https://github.com/kovidgoyal/calibre/releases/download/v#{version}/calibre-#{version}.dmg"
appcast 'https://github.com/kovidgoyal/calibre/releases.atom'
end
name 'calibre'
homepage 'http://calibre-ebook.com/'
license :gpl
app 'calibre.app'
end