blob: a9168c8b1808a3256403d1bfb22377656846aea1 (
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
37
38
|
# Maintainer: Ch4s3r <lamprecht.patrick1@gmail.com>
pkgname=argocd-autopilot-bin
# latest version will be taken downloaded and shown in your package manager from pkgver()
pkgver=v0.0.0
pkgrel=2
pkgdesc="Argo-CD Autopilot is a tool which offers an opinionated way of installing Argo-CD and managing GitOps repositories."
arch=(x86_64 aarch64)
url="https://github.com/argoproj-labs/argocd-autopilot"
license=('Apache')
provides=(argocd-autopilot)
pkgver() {
curl -s "https://api.github.com/repos/argoproj-labs/argocd-autopilot/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/'
}
package() {
if [[ $CARCH == aarch64 ]]; then
ARCH=arm64
else
ARCH=amd64
fi
export VERSION=`curl -s "https://api.github.com/repos/argoproj-labs/argocd-autopilot/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/'`
curl -L --output argocd-autopilot.tar.gz "https://github.com/argoproj-labs/argocd-autopilot/releases/download/$VERSION/argocd-autopilot-linux-$ARCH.tar.gz"
tar xzf argocd-autopilot.tar.gz
mv argocd-autopilot-* argocd-autopilot
install -Dm755 argocd-autopilot "$pkgdir/usr/bin/argocd-autopilot"
./argocd-autopilot completion bash > completion
install -Dm755 completion "$pkgdir/usr/share/bash-completion/completions/argocd-autopilot"
./argocd-autopilot completion bash > completion
install -Dm755 completion "$pkgdir/usr/share/fish/vendor_completions.d/argocd-autopilot.fish"
./argocd-autopilot completion bash > completion
install -Dm755 completion "$pkgdir/usr/share/zsh/site-functions/_argocd-autopilot"
}
|