Files
chromebrew/packages/awscli.rb
2025-10-19 16:32:16 +00: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.42.55-#{CREW_PY_VER}"
license 'Apache-2.0'
compatibility 'all'
source_url 'SKIP'
binary_compression 'tar.zst'
binary_sha256({
aarch64: '801019e23a5d53b50f3d6b61e2282819b7a6e537c07e6911dce874490688a5f3',
armv7l: '801019e23a5d53b50f3d6b61e2282819b7a6e537c07e6911dce874490688a5f3',
i686: '2a21bf603e4fd0fed4b360cecab6da3c717aa6a2b26712148743957bc6cea785',
x86_64: 'ec48c0ec7db6d8af0853bf68fba36d5e809dfc71f8f6134dbabbe16883b69e28'
})
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