Files
chromebrew/packages/awscli.rb
chromebrew-actions[bot] 57c79bf2a0 updater-awscli-1.42.15 — awscli → 1.42.15 (#12612)
* Add unbuilt awscli to updater-awscli-1.42.15

* updater-awscli-1.42.15: Build Run on linux/386.

* updater-awscli-1.42.15: Build Run on linux/amd64.

* updater-awscli-1.42.15: Build Run on linux/arm/v7.

* updater-awscli-1.42.15: Package File Update Run on linux/386 container.

---------

Co-authored-by: satmandu <satmandu@users.noreply.github.com>
Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
2025-08-22 04:09:10 +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.15-#{CREW_PY_VER}"
license 'Apache-2.0'
compatibility 'all'
source_url 'SKIP'
binary_compression 'tar.zst'
binary_sha256({
aarch64: '8d390bececf0b24389e39c867575044894091ad18e95d7e402de54261635c8e4',
armv7l: '8d390bececf0b24389e39c867575044894091ad18e95d7e402de54261635c8e4',
i686: '6b81595746db74938f23c54bc607d9607742c6b33dd25776343b840372ef4bf4',
x86_64: '35b278cb2cee105b95ecf4fe7d04d9b21532c34a36b36d313d8293c353beccb4'
})
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