Files
chromebrew/packages/awscli.rb
github-actions[bot] 41702cc5b3 AutoBuild: updates-2025-02-04-00-18 started at 2025-02-04-14UTC (#11242)
* Add unbuilt updated pip packages to updates-2025-02-04-00-18

* Add built packages for linux/386 to updates-2025-02-04-00-18

* Add built packages for linux/amd64 to updates-2025-02-04-00-18

* Add built packages for linux/arm/v7 to updates-2025-02-04-00-18

---------

Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
Co-authored-by: satmandu <satmandu@users.noreply.github.com>
2025-02-04 14:42: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.37.12-#{CREW_PY_VER}"
license 'Apache-2.0'
compatibility 'all'
source_url 'SKIP'
binary_compression 'tar.zst'
binary_sha256({
aarch64: 'ada220b17c142dbf2734f9e3e85bc0384dd3b6c3b5c78593c1bc024335ccca03',
armv7l: 'ada220b17c142dbf2734f9e3e85bc0384dd3b6c3b5c78593c1bc024335ccca03',
i686: '5a85236c9397695a5656bb6705285cd410874ff8350e0331b9a6ed0c0b1023d6',
x86_64: '86b729c0e9828164e3524da4a19a5b4fb4c3d01391921cfe1fd2494216daaf4c'
})
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