Files
chromebrew/packages/aws.rb
Satadru Pramanik 001060b261 Python 3.11 (#7570)
* Python 3.11 initial binary upload

* switch py_libxml2 to -py3.11

* fixup package versions

* fix py3_pillow

* build python with ensurepip

* add flit_core to pyparsing

* update some package versions

* update wheel

* update core python packages

* more updates

* update py3_libxml2.rb py3_pyelftools.rb py3_codespell.rb

* add all successful builds

* update versions in broken builds

* fix package

* adding some binaries

* add build

* add meson build

* add py3_numpy builds

* update itstool

* update xcb_proto

* add more packages

* update bind to not include py3_ply

* rebuild libcaca

* update py3_gi_docgen

* remove some conflicts_ok

* remove setuptools and pip deps

* attempt pip uninstall during install

* add preflight to pip and setuptools

* try excluding pip again

* adjust logic

* lint
2022-12-02 12:27:01 -06:00

45 lines
1.8 KiB
Ruby

require 'package'
class Aws < Package
description 'Universal Command Line Interface for Amazon Web Services'
homepage 'https://github.com/aws/aws-cli'
version '1.19.53'
license 'Apache-2.0'
compatibility 'all'
source_url 'SKIP'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aws/1.19.53_armv7l/aws-1.19.53-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aws/1.19.53_armv7l/aws-1.19.53-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aws/1.19.53_i686/aws-1.19.53-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aws/1.19.53_x86_64/aws-1.19.53-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: 'b5c350d0e754a9d710c8fe5caff4c9b4c6f2a5327930984a71c490c4e8c29e32',
armv7l: 'b5c350d0e754a9d710c8fe5caff4c9b4c6f2a5327930984a71c490c4e8c29e32',
i686: '29bf3490a8df4b2e69e59c3896f34e94a062cc87be66228beedee1746ddcdcfd',
x86_64: 'c77ef8bb2f994afa6f5eceac354ee3d18a4365bf31f26e6db0b27c8c410e66bf'
})
depends_on 'groff'
depends_on 'python3' => :build
def self.install
system "pip install --prefix #{CREW_PREFIX} --root #{CREW_DEST_DIR} \
-I awscli==#{version} --no-warn-script-location"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/bash.d"
@awsbashrc = <<~AWSBASHRCEOF
# Amazon Web Services CLI bash completion
source #{CREW_PREFIX}/bin/aws_bash_completer
AWSBASHRCEOF
File.write("#{CREW_DEST_PREFIX}/etc/bash.d/aws", @awsbashrc)
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/zsh.d"
@awszshrc = <<~AWSZSHRCEOF
# Amazon Web Services CLI zsh completion
source #{CREW_PREFIX}/bin/aws_zsh_completer.sh
AWSZSHRCEOF
File.write("#{CREW_DEST_PREFIX}/etc/zsh.d/aws", @awszshrc)
end
end