homebrew-cask/Casks/kicad.rb

18 lines
579 B
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask 'kicad' do
version '4.0.1'
sha256 '1b29b269b89e4af75b1292a10c75d0977cf573fe99a9f343fa578a0e4f862730'
2014-11-05 06:12:34 +08:00
2015-12-09 02:02:58 +08:00
url "http://downloads.kicad-pcb.org/osx/stable/kicad-#{version}.dmg"
2015-05-09 03:58:46 +08:00
name 'KiCad'
2014-11-05 06:12:34 +08:00
homepage 'http://www.kicad-pcb.org/'
license :gpl
suite 'Kicad-apps', target: 'Kicad'
artifact 'kicad', target: "#{ENV['HOME']}/Library/Application Support/kicad"
2015-12-09 02:02:58 +08:00
preflight do
system_command '/bin/mkdir', args: ['--', "#{staged_path}/Kicad-apps"]
system_command '/bin/mv', args: ['--', *Dir["#{staged_path}/Kicad/*.app"], "#{staged_path}/Kicad-apps/"]
2015-12-09 02:02:58 +08:00
end
2014-11-05 06:12:34 +08:00
end