diff options
author | Steve Engledow | 2020-08-04 11:16:34 +0100 |
---|---|---|
committer | Steve Engledow | 2020-08-04 11:17:40 +0100 |
commit | c5eecbde28382a6507b7c2ae698dabab9ebb4dd0 (patch) | |
tree | df09dc37db7b7545b70fb04312821bde8d64d44a /PKGBUILD | |
parent | 8e667d317383c49f4f5befa4038dbefee66b2a4e (diff) | |
download | aur-c5eecbde28382a6507b7c2ae698dabab9ebb4dd0.tar.gz |
Use nefarious purposes to validate the source and generate the version number
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 25 |
1 files changed, 19 insertions, 6 deletions
@@ -1,6 +1,6 @@ # Maintainer: Steve Engledow <steve@engledow.me> pkgname=aws-cli-v2-bin -pkgver=2.0.35 +pkgver=2.0.36 pkgrel=1 pkgdesc='Universal Command Line Interface for Amazon Web Services version 2' arch=('i686' 'x86_64') @@ -12,15 +12,28 @@ makedepends=('unzip') depends=('less') source=( "$pkgname-$pkgver.zip::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' + "$pkgname-$pkgver.txt::https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip.sig" + "key.txt" ) -#validpgpkeys=('FB5DB77FD5C118B80511ADA8A6310ACC4672475C') sha256sums=( - 'ca743d7cac979bbaca9a0781c44f832f7e856c24ebcf2dbf9babe380f5b12111' + "SKIP" + "SKIP" + "08234975191be290020728ad89423176430767dbd407421d02853f6fdd5ca50a" ) +prepare() { + # Check the sig but don't import the key + # This is required because AWS haven't yet published their key to a keyserver + # Please add your +1 to this issue https://github.com/aws/aws-cli/issues/4942 + + gpg --dearmor key.txt + gpg --no-default-keyring --keyring key.txt.gpg --homedir ./ --verify "$pkgname-$pkgver.txt" "$pkgname-$pkgver.zip" +} + +pkgver() { + ./aws/dist/aws --version | cut -d ' ' -f 1 | cut -d '/' -f 2 +} + package() { $srcdir/aws/install -i "$pkgdir/usr/share/aws-cli" -b "$pkgdir/usr/bin" >/dev/null |