homebrew-cask/Casks/crosspack-avr.rb

28 lines
1.0 KiB
Ruby
Raw Normal View History

class CrosspackAvr < Cask
url 'http://www.obdev.at/downloads/crosspack/CrossPack-AVR-20131216.dmg'
homepage 'http://www.obdev.at/products/crosspack/'
version 'CrossPack-AVR 20130-12-16'
sha256 '959f9bf00429a0e46e649a14d7891cb4086c9cf2d032d9f66899d6efbb628f6e'
install 'CrossPack-AVR.pkg'
after_uninstall do
IO.popen('/usr/bin/yes | /usr/bin/sudo -E -- /usr/local/CrossPack-AVR/uninstall && /usr/bin/sudo -- /usr/sbin/pkgutil --forget at.obdev.CrossPack-AVR', 'r+') do |pipe|
pipe.close_write
while line = pipe.gets
puts line
end
end
end
2014-01-21 04:04:45 +08:00
caveats do
puts <<-EOS.undent
CrossPack-AVR can normally install multiple versions side-by-side.
Therefore, running install will typically install multiple versions
of the tools in /usr/local/ (e.g. /usr/local/CrossPack-AVR-20131216).
2014-01-21 04:04:45 +08:00
This cask will invoke the CrossPack-AVR uninstall script when it is
uninstalled, removing the most recent version of the tools.
EOS
2014-01-21 04:04:45 +08:00
files_in_usr_local
end
end