aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1422b9484fac210822d15921328ca31283da3e7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Maintainer: Ch4s3r <lamprecht.patrick1@gmail.com>
pkgname=argocd-autopilot-bin
pkgver=v0.0.0
pkgrel=1
pkgdesc="Argocd autopilot binary downloaded from Github"
arch=(x86_64)
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() {
	curl -L --output - https://github.com/argoproj-labs/argocd-autopilot/releases/download/$pkgver/argocd-autopilot-linux-amd64.tar.gz | tar zx
	install -Dm755 argocd-autopilot-* "$pkgdir/usr/bin/argocd-autopilot"
}