Skip to content

Instantly share code, notes, and snippets.

@kylelaker
Created March 20, 2020 01:34
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kylelaker/e43e4e9a10000c694bae8592901394eb to your computer and use it in GitHub Desktop.
Save kylelaker/e43e4e9a10000c694bae8592901394eb to your computer and use it in GitHub Desktop.
aws-cli-v2 PKGBUILD
pkgname=aws-cli-v2
pkgver=2.0.4
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=('python-setuptools')
depends=('less' \
'python-botocore-v2-git' \
'python-docutils' \
'python-s3transfer' \
'python-ruamel-yaml' \
'python-prompt_toolkit' \
'python-colorama')
source=(
"$pkgname-$pkgver.tar.gz::https://github.com/aws/aws-cli/archive/${pkgver}.tar.gz"
)
sha256sums=('377c48c90228196704c229ea7111332f4dac131419722213bf55d4075ae94a0b')
build() {
cd "$srcdir/aws-cli-$pkgver"
python setup.py build
}
package() {
cd "$srcdir/aws-cli-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/"$pkname"/LICENSE
install -Dm644 bin/aws_bash_completer "$pkgdir"/usr/share/bash-completion/completions/aws
rm -f "$pkgdir"/usr/bin/{aws.cmd,aws_bash_completer}
}
@jeanlescure
Copy link

First of all, thanks for this!

Works almost perfectly...

...in Manjaro I got this error:

ModuleNotFoundError: No module named 'cryptography'

Added package python-cryptography and it fixed it. Might want to add it as a dependency here as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment