blob: 09e9057e43d3139abfa2135d3cc8a793c9677bee (
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
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Winston Astrachan <winston dot astrachan at gmail dot com>
pkgname=google-cloud-cli-gke-gcloud-auth-plugin
pkgver=458.0.1
pkgrel=1
pkgdesc="A google-cloud-cli component that provides a kubectl authentication plugin for GKE."
arch=('x86_64')
url="https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke"
license=('Apache')
depends=('google-cloud-cli')
options=('!strip')
source=(
"https://dl.google.com/dl/cloudsdk/release/downloads/for_packagers/linux/${pkgname}_${pkgver}.orig_amd64.tar.gz"
'google-cloud-cli-gke-gcloud-auth-plugin.sh')
sha256sums=('7c44e039fae2675364d1df860573ac321b240d4b27eb8a7efec915de7da69d59'
'4432c1e71c39cb0914baa4df6c8699adc7e633163da7be87ac159d5b320cb346')
package() {
cd "$srcdir/google-cloud-sdk" # Does not match naming convention google-cloud-cli
# Install plugin manifests and snapshots
manifests=(
"gke-gcloud-auth-plugin-linux-${CARCH}.manifest"
"gke-gcloud-auth-plugin-linux-${CARCH}.snapshot.json"
"gke-gcloud-auth-plugin.manifest"
"gke-gcloud-auth-plugin.snapshot.json"
)
for item in ${manifests[@]}; do
install -Dm644 \
".install/${item}" \
"${pkgdir}/opt/google-cloud-cli/.install/${item}"
done
# Install plugin binary
install -Dm755 \
"bin/gke-gcloud-auth-plugin" \
"${pkgdir}/opt/google-cloud-cli/bin/gke-gcloud-auth-plugin"
# Symlink plugin binary
install -dm755 "${pkgdir}/usr/bin/"
ln -s \
"/opt/google-cloud-cli/bin/gke-gcloud-auth-plugin" \
"${pkgdir}/usr/bin/gke-gcloud-auth-plugin"
# Install profile.d environment exports
install -Dm755 \
"${srcdir}/google-cloud-cli-gke-gcloud-auth-plugin.sh" \
"${pkgdir}/etc/profile.d/google-cloud-cli-gke-gcloud-auth-plugin.sh"
}
|