homebrew-cask/Casks/displaycal.rb

26 lines
857 B
Ruby

cask 'displaycal' do
version '3.7.1.3'
sha256 'b3d59176563be76b9b31a489abb5449811453d2c41dffa4035259b7eb2e12c64'
# 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'
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