Skip to content

Instantly share code, notes, and snippets.

@ribugent
Created February 23, 2022 07:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ribugent/653d48a441b6b75239b7e799dcdfe8ec to your computer and use it in GitHub Desktop.
Save ribugent/653d48a441b6b75239b7e799dcdfe8ec to your computer and use it in GitHub Desktop.
aws-sam-cli-bin
# Maintainer: aksel <aksel@akseltorgard.com>
pkgname=aws-sam-cli-bin
pkgver=1.38.1
pkgrel=2
pkgdesc="CLI tool to build, test, debug, and deploy Serverless applications using AWS SAM"
arch=("x86_64")
url="https://github.com/aws/aws-sam-cli"
license=("Apache")
optdepends=("docker")
source=("aws-sam-cli-linux-$pkgver-x86_64.zip::https://github.com/aws/aws-sam-cli/releases/download/v$pkgver/aws-sam-cli-linux-x86_64.zip")
sha256sums=("ce42d355437d69ee33e12a76747e53c8d383c4e7f505a986d498b2028c2c55b1")
provides=("aws-sam-cli")
conflicts=("aws-sam-cli")
package() {
$srcdir/install -i "$pkgdir/usr/share/aws-sam-cli" -b "$pkgdir/usr/bin" >/dev/null
# Install binary symlinks
BIN_DIR="/usr/share/aws-sam-cli/$pkgver/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-sam-cli/current"
ln -s "/usr/share/aws-sam-cli/$pkgver" "$pkgdir/usr/share/aws-sam-cli/current"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment