homebrew-cask/Casks/displaycal.rb

27 lines
947 B
Ruby

cask 'displaycal' do
version '3.5.0.0'
sha256 'e667c4a5e0abf1df82e041d6accd29e77c924dcdcb8ecbd07674d6cf979e6bb7'
# 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: '1696a83eb611839bfaf6b49191ab51e775ec8a4d07c2ec5dca02a5f2977960c5'
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