Commit 97659c3

mo khan <mo@mokhan.ca>
2021-03-09 19:00:18
tidy up package
1 parent f89f69d
Changed files (2)
config
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
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