diff --git a/aws-cli-v2.yaml b/aws-cli-v2.yaml new file mode 100644 index 00000000000..bdfc1492261 --- /dev/null +++ b/aws-cli-v2.yaml @@ -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."