diff options
Diffstat (limited to 'config')
| -rw-r--r-- | config/projects/asdf.rb | 14 | ||||
| -rw-r--r-- | config/software/preparation.rb | 33 |
2 files changed, 18 insertions, 29 deletions
diff --git a/config/projects/asdf.rb b/config/projects/asdf.rb index f080c48..97c1483 100644 --- a/config/projects/asdf.rb +++ b/config/projects/asdf.rb @@ -1,18 +1,18 @@ # -# Copyright 2020 YOUR NAME +# Copyright 2020 Mo Khan # # All Rights Reserved. # name "asdf" -maintainer "CHANGE ME" -homepage "https://CHANGE-ME.com" +maintainer "mkhan@gitlab.com" +homepage "https://gitlab.com/xlgmokha/omnibus-asdf" # Defaults to C:/asdf on Windows # and /opt/asdf on all other platforms -install_dir "#{default_root}/#{name}" +install_dir "/opt/asdf" -build_version Omnibus::BuildVersion.semver +build_version "0.1.0" build_iteration 1 # Creates required build directories @@ -21,5 +21,5 @@ dependency "preparation" # asdf dependencies/components # dependency "somedep" -exclude "**/.git" -exclude "**/bundler/git" +#exclude "**/.git" +#exclude "**/bundler/git" diff --git a/config/software/preparation.rb b/config/software/preparation.rb index 05ca827..f37f3e5 100644 --- a/config/software/preparation.rb +++ b/config/software/preparation.rb @@ -1,30 +1,19 @@ -# -# Copyright 2020 YOUR NAME -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - name "preparation" description "the steps required to prepare the build" -default_version "1.0.0" +default_version "0.7.8" +source url: "https://github.com/asdf-vm/asdf/archive/v0.7.8.tar.gz", md5: 'c64fe16441d639669a6bf56a860e0eb4' +relative_path "asdf-#{version}" -license :project_license -skip_transitive_dependency_licensing true +license_file "#{project_dir}/LICENSE" +#skip_transitive_dependency_licensing true build do block do - touch "#{install_dir}/embedded/lib/.gitkeep" - touch "#{install_dir}/embedded/bin/.gitkeep" - touch "#{install_dir}/bin/.gitkeep" + sync "#{project_dir}/bin", "#{install_dir}/bin" + sync "#{project_dir}/lib", "#{install_dir}/lib" + command "echo 'legacy_version_file = yes' > #{install_dir}/defaults" + #touch "#{install_dir}/embedded/lib/.gitkeep" + #touch "#{install_dir}/embedded/bin/.gitkeep" + #touch "#{install_dir}/bin/.gitkeep" end end |
