blob: bbc62505347eff68bb4cc93a9ed1b268900fb6a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: Kevin Stolp <kevinstolp@gmail.com>
# Contributor: aksel <aksel@akseltorgard.com>
pkgname=aws-sam-cli-bin
pkgver=1.132.0
pkgrel=1
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")
provides=("aws-sam-cli")
conflicts=("aws-sam-cli")
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=("47a183837db9aa8b6005253d04dab9d7a2303aa7c23198c42d8d0049177c7e9f")
_remove_pkgdir_from_link() {
local current_target="$(readlink "$1")"
rm "$1"
ln -s "${current_target#"$pkgdir"}" "$1"
}
package() {
# Install
$srcdir/install -i "$pkgdir/usr/share/aws-sam-cli" -b "$pkgdir/usr/bin" >/dev/null
# Fix symlink for current version directory
_remove_pkgdir_from_link "$pkgdir/usr/share/aws-sam-cli/current"
# Fix symlinks in bin directory
for i in $pkgdir/usr/bin/*; do
_remove_pkgdir_from_link "$i"
done
}
|