Add version to clusterctl binary when downloading

This commit is contained in:
Sergei Yakovlev 2021-05-14 09:59:25 +03:00
parent 741a52b0f4
commit 58821e5f49
No known key found for this signature in database
GPG key ID: 9933BC25075D15A2
2 changed files with 4 additions and 4 deletions

View file

@ -6,8 +6,8 @@ pkgbase = clusterctl-bin
arch = x86_64 arch = x86_64
license = Apache license = Apache
optdepends = kubectl: to manage the cluster optdepends = kubectl: to manage the cluster
provides = clusterctl=0.3.16 provides = clusterctl
source = https://github.com/kubernetes-sigs/cluster-api/releases/download/v0.3.16/clusterctl-linux-amd64 source = clusterctl-linux-amd64-v0.3.16::https://github.com/kubernetes-sigs/cluster-api/releases/download/v0.3.16/clusterctl-linux-amd64
sha256sums = ae45da8b66a0c8150b91edf88015ff45eb7d21e48f95f006dddd366add6c8441 sha256sums = ae45da8b66a0c8150b91edf88015ff45eb7d21e48f95f006dddd366add6c8441
pkgname = clusterctl-bin pkgname = clusterctl-bin

View file

@ -9,10 +9,10 @@ url="https://cluster-api.sigs.k8s.io/"
license=('Apache') license=('Apache')
optdepends=('kubectl: to manage the cluster') optdepends=('kubectl: to manage the cluster')
provides=('clusterctl') provides=('clusterctl')
source=("https://github.com/kubernetes-sigs/cluster-api/releases/download/v$pkgver/clusterctl-linux-amd64") source=("clusterctl-linux-amd64-v$pkgver::https://github.com/kubernetes-sigs/cluster-api/releases/download/v$pkgver/clusterctl-linux-amd64")
sha256sums=('ae45da8b66a0c8150b91edf88015ff45eb7d21e48f95f006dddd366add6c8441') sha256sums=('ae45da8b66a0c8150b91edf88015ff45eb7d21e48f95f006dddd366add6c8441')
package() { package() {
install -Dm 755 "$srcdir/clusterctl-linux-amd64" "$pkgdir/usr/bin/clusterctl" install -Dm 755 "$srcdir/clusterctl-linux-amd64-v$pkgver" "$pkgdir/usr/bin/clusterctl"
} }