homebrew-cask/Casks/displaycal.rb

27 lines
947 B
Ruby

cask 'displaycal' do
version '3.4.0.0'
sha256 '2f6c8253b094df1f39ddfcff1d225e2aa9f6a32aecfa6ff610802dfeb0d46837'
# sourceforge.net/dispcalgui was verified as official when first introduced to the cask
url "https://downloads.sourceforge.net/dispcalgui/release/#{version}/DisplayCAL-#{version}.dmg"
appcast 'https://sourceforge.net/projects/dispcalgui/rss?path=/release',
checkpoint: 'ffa0643ae7cdafe81d18fe3dd700547ff1a84386b04a2d81aecc47dfd25c93ee'
name 'DisplayCAL'
homepage 'https://displaycal.net/'
depends_on formula: 'argyll-cms'
suite 'DisplayCAL'
preflight do
# There is no sub-folder in the DMG; the root *is* the folder
FileUtils.mv(staged_path.children, staged_path.join('DisplayCAL').tap(&:mkpath))
end
zap trash: [
'~/Library/Application Support/dispcalGUI',
'~/Library/Logs/dispcalGUI',
'~/Library/Preferences/dispcalGUI',
]
end