homebrew-cask/Casks/displaycal.rb

26 lines
857 B
Ruby
Raw Normal View History

cask 'displaycal' do
2018-04-28 08:46:18 +08:00
version '3.5.3.0'
sha256 '1828b5dea240570bd759484917c2c52e5b96ca87c841669859b18a4cb7caa7db'
# 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