Skip to content

Instantly share code, notes, and snippets.

@mercutiodesign
Created May 30, 2020 10:56
Show Gist options
  • Save mercutiodesign/a42d820b82af01086d7bfb00a52776d0 to your computer and use it in GitHub Desktop.
Save mercutiodesign/a42d820b82af01086d7bfb00a52776d0 to your computer and use it in GitHub Desktop.
aws-cli-v2 updated to 2.0.17
# Maintainer: Steve Engledow <[email protected]>
pkgname=aws-cli-v2
pkgver=2.0.17
pkgrel=1
pkgdesc='Universal Command Line Interface for Amazon Web Services version 2'
arch=('i686' 'x86_64')
url='https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html'
license=('Apache')
provides=('aws-cli')
conflicts=('aws-cli')
makedepends=('unzip')
depends=('less')
source=(
'https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip'
# on hold until the AWS CLI team publish their key
# See https://github.com/aws/aws-cli/issues/4942
# 'https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip.sig'
)
#validpgpkeys=('FB5DB77FD5C118B80511ADA8A6310ACC4672475C')
sha256sums=(
'be7305558daedfdb4f115ebbd6e2ab473ae3de37a8eb3a8290f30f4853c8e9d5'
)
package() {
"$srcdir/aws/install" -i "$pkgdir/usr/share/aws-cli" -b "$pkgdir/usr/bin" >/dev/null
# Fix symlinks
BIN_DIR=/usr/share/aws-cli/v2/current/bin
for i in "$pkgdir/$BIN_DIR/"*; do
ln -sf "$BIN_DIR/$(basename "$i")" "$pkgdir/usr/bin/"
done
# Fix symlink for current version
rm "$pkgdir/usr/share/aws-cli/v2/current"
ln -s "/usr/share/aws-cli/v2/$pkgver" "$pkgdir/usr/share/aws-cli/v2/current"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment