mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
29 lines
844 B
Ruby
29 lines
844 B
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.33.27-py3.12'
|
|
license 'Apache-2.0'
|
|
compatibility 'all'
|
|
source_url 'SKIP'
|
|
|
|
depends_on 'groff'
|
|
depends_on 'python3' => :build
|
|
|
|
no_compile_needed
|
|
|
|
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
|