homebrew-cask/Casks/clamxav.rb

39 lines
1.1 KiB
Ruby

cask 'clamxav' do
if MacOS.release <= :tiger
version '2.2.1'
sha256 'e075b21fe5154f31dcbde86e492531c87c67ab44ad75294d3063f32ae1e58278'
elsif MacOS.release <= :leopard
version '2.5.1'
sha256 '02a7529c74d11724e2d0e8226ac83a0d3cfb599afb354d02f6609632d69d9eb1'
else
version '2.8.9.3'
sha256 '06cfdd93a27f6a58dd30f2e268761e2956eedb88af120b7932f1d73442e00526'
appcast 'https://www.clamxav.com/sparkle/appcast.xml',
checkpoint: '3174407536e67a24c265ba98e7c1e6fe78558ef28ce2e3defde2c30bac1f6270'
end
url "https://www.clamxav.com/downloads/ClamXav_#{version}.dmg"
name 'ClamXav'
homepage 'https://www.clamxav.com/'
license :commercial
app 'ClamXav.app'
postflight do
suppress_move_to_applications
end
zap delete: [
'~/Library/Caches/uk.co.markallan.clamxav',
'~/Library/Logs/clamXav-scan.log',
# TODO: glob/expand needed here
'~/Library/Logs/clamXav-scan.log.0.bz2',
]
caveats do
# this happens sometime after installation, but still worth warning about
files_in_usr_local
end
end