main
 1name "preparation"
 2description "the steps required to prepare the build"
 3default_version "1.0.0"
 4
 5license :project_license
 6skip_transitive_dependency_licensing true
 7
 8dependency "spandx-ruby"
 9
10build do
11  block do
12    command "mkdir -p #{install_dir}/bin"
13    command "mkdir -p #{install_dir}/embedded/bin"
14    command "mkdir -p #{install_dir}/embedded/lib"
15
16    env = with_standard_compiler_flags(with_embedded_path)
17    gem "install spandx --platform=ruby", env: env
18    copy "#{install_dir}/embedded/bin/spandx", "#{install_dir}/bin/spandx"
19
20    delete "#{install_dir}/embedded/share"
21  end
22end