homebrew-cask/Casks/displaycal.rb

26 lines
857 B
Ruby
Raw Normal View History

cask 'displaycal' do
2018-06-23 02:43:58 +08:00
version '3.6.0.0'
sha256 '31e4f37855cf27be8cc487d116f2032f9c4d7eae5eba50683a116f1544fe0855'
# sourceforge.net/dispcalgui was verified as official when first introduced to the cask
url "https://downloads.sourceforge.net/dispcalgui/release/#{version}/DisplayCAL-#{version}.dmg"
2018-06-12 22:37:26 +08:00
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
2017-11-18 17:50:50 +08:00
zap trash: [
'~/Library/Application Support/dispcalGUI',
'~/Library/Logs/dispcalGUI',
'~/Library/Preferences/dispcalGUI',
]
end