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.2'
sha256 '0e2db9ea09a5da4a4769caa2c024772336ca52edc4297d3e7d1bd11c000d28b3'
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