Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new pkg: aws-cli (v2), rename aws-cli to aws-cli-v1 #11127

Merged
merged 12 commits into from
Mar 25, 2024
58 changes: 58 additions & 0 deletions aws-cli-v2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# awscli use these documentation files (*.rst) in aws help command
#nolint:documentation
package:
name: aws-cli-v2
version: 2.15.32
epoch: 0
description: "Universal Command Line Interface for Amazon Web Services (v2)"
copyright:
- license: Apache-2.0
dependencies:
runtime:
- groff

environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- posix-libc-utils # need ldd
- python-3.11
- python-3.11-dev
- wolfi-base

pipeline:
- uses: git-checkout
with:
repository: https://github.com/aws/aws-cli
expected-commit: 8ce449d19a1c9494a95769bdaed1f21adf3d87eb
tag: ${{package.version}}

- runs: |
./configure \
--prefix=/usr/ \
--with-install-type=portable-exe \
--with-download-deps

- uses: autoconf/make

- uses: autoconf/make-install

# manually fix the symlinks, waiting for upstream fix
# ref: https://github.com/aws/aws-cli/issues/8467
- runs: |
rm ${{targets.destdir}}/usr/bin/aws
rm ${{targets.destdir}}/usr/bin/aws_completer

ln -s /usr/lib/aws-cli/aws ${{targets.destdir}}/usr/bin/aws
ln -s /usr/lib/aws-cli/aws_completer ${{targets.destdir}}/usr/bin/aws_completer

- uses: strip

update:
enabled: true
github:
identifier: aws/aws-cli
use-tag: true
tag-filter: "2."
Loading