summaryrefslogtreecommitdiff
path: root/config/software/preparation.rb
blob: dcaf7b32033f1df14ac174d85d0160cfcb165b45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name "preparation"
description "the steps required to prepare the build"
default_version "1.0.0"

license :project_license
skip_transitive_dependency_licensing true

dependency "spandx-ruby"

build do
  block do
    command "mkdir -p #{install_dir}/bin"
    command "mkdir -p #{install_dir}/embedded/bin"
    command "mkdir -p #{install_dir}/embedded/lib"

    env = with_standard_compiler_flags(with_embedded_path)
    gem "install spandx --platform=ruby", env: env
    copy "#{install_dir}/embedded/bin/spandx", "#{install_dir}/bin/spandx"

    delete "#{install_dir}/embedded/share"
  end
end