Files
chromebrew/packages/awscli.rb
Satadru Pramanik, DO, MPH, MEng c78b28be9e Add packages for default and bundled Ruby gems. (#10535)
* Update create_gem_packages.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add default gems package.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add default gems to core.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Handle gem names with underscores and dashes.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Try to make gem reinstalls faster.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Update awscli.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust early gem install exit logic.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust default packages script.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Gem install refactoring...

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Refactor gem compile.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Fix create_gem_packages description.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Work around matrix removal breaking crew.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* lint

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
2024-09-28 13:31:25 -05:00

37 lines
1.2 KiB
Ruby

require 'buildsystems/pip'
class Awscli < Pip
description 'Universal Command Line Interface for Amazon Web Services'
homepage 'https://github.com/aws/aws-cli'
version "1.34.29-#{CREW_PY_VER}"
license 'Apache-2.0'
compatibility 'all'
source_url 'SKIP'
binary_compression 'tar.zst'
binary_sha256({
aarch64: '4e09a646ab51f48df4499d9a6bfcdd6a5f989240cee552597b86aede3840bddf',
armv7l: '4e09a646ab51f48df4499d9a6bfcdd6a5f989240cee552597b86aede3840bddf',
i686: 'eb5b9d40a91e002f1f819a79c4d4cdcc0b16dc062fa875c9f0074463ee39b48d',
x86_64: '67d0b489172a31ea500ab22ce44e5a463be2230f734331f14a42971dad6daf17'
})
depends_on 'groff'
depends_on 'python3' => :build
no_source_build
pip_install_extras do
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/bash.d"
File.write "#{CREW_DEST_PREFIX}/etc/bash.d/aws", <<~AWSBASHRCEOF
# Amazon Web Services CLI bash completion
source #{CREW_PREFIX}/bin/aws_bash_completer
AWSBASHRCEOF
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/zsh.d"
File.write "#{CREW_DEST_PREFIX}/etc/zsh.d/aws", <<~AWSZSHRCEOF
# Amazon Web Services CLI zsh completion
source #{CREW_PREFIX}/bin/aws_zsh_completer.sh
AWSZSHRCEOF
end
end