blob: d884ed69f4b019fc2c066cf5301c641416d0dc18 (
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
35
36
|
# Maintainer: Damjan Georgievski <gdamjan@gmail.com>
pkgname=copilot-cli
pkgver=1.34.0
pkgrel=1
epoch=1
pkgdesc='A tool to help deploy containerized applications on Amazon ECS'
arch=(x86_64)
url='https://github.com/aws/copilot-cli'
license=(Apache)
depends=('glibc')
makedepends=('go' 'npm')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
build() {
cd $pkgname-$pkgver
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
make VERSION=$pkgver build
}
package() {
install -Dm 755 "$pkgname-$pkgver/bin/local/copilot" "$pkgdir/usr/bin/copilot"
# Populate bash and zsh completions
install -dm 755 "$pkgdir/usr/share/bash-completion/completions"
install -dm 755 "$pkgdir/usr/share/zsh/site-functions"
"$pkgdir/usr/bin/copilot" completion bash > "$pkgdir/usr/share/bash-completion/completions/copilot"
"$pkgdir/usr/bin/copilot" completion zsh > "$pkgdir/usr/share/zsh/site-functions/_copilot"
}
sha256sums=('accc579f16a4a3ce59376d98bffdde206c849004834ad5f953b0bef1c4a4ed11')
|