diff options
| author | mo khan <mo@mokhan.ca> | 2021-03-09 12:00:18 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2021-03-09 12:00:18 -0700 |
| commit | 97659c3318a01fc6d875e088b04590ee759a5eb6 (patch) | |
| tree | 30f2ffb0978337deb5f7dda565ad2b38d1372f6f | |
| parent | f89f69d8517656039f5e62137e07f12a31e6248d (diff) | |
tidy up package
| -rw-r--r-- | config/projects/spandx.rb | 6 | ||||
| -rw-r--r-- | config/software/preparation.rb | 9 |
2 files changed, 8 insertions, 7 deletions
diff --git a/config/projects/spandx.rb b/config/projects/spandx.rb index 11dfc93..9b9f75d 100644 --- a/config/projects/spandx.rb +++ b/config/projects/spandx.rb @@ -1,9 +1,7 @@ name "spandx" -maintainer "CHANGE ME" -homepage "https://CHANGE-ME.com" +maintainer "mo khan <mo@mokhan.ca>" +homepage "https://github.com/spandx" -# Defaults to C:/spandx on Windows -# and /opt/spandx on all other platforms install_dir "#{default_root}/#{name}" build_version Omnibus::BuildVersion.semver diff --git a/config/software/preparation.rb b/config/software/preparation.rb index b51838e..dcaf7b3 100644 --- a/config/software/preparation.rb +++ b/config/software/preparation.rb @@ -9,11 +9,14 @@ dependency "spandx-ruby" build do block do - touch "#{install_dir}/embedded/lib/.keep" - touch "#{install_dir}/embedded/bin/.keep" - touch "#{install_dir}/bin/.keep" + 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 |
