diff --git a/srcpkgs/google-cloud-sdk/INSTALL.msg b/srcpkgs/google-cloud-sdk/INSTALL.msg new file mode 100644 index 00000000000..2c57e37f219 --- /dev/null +++ b/srcpkgs/google-cloud-sdk/INSTALL.msg @@ -0,0 +1,4 @@ +For bash completions, install the 'bash-completion' package. +For zsh completions, put the following code in your ~/.zshrc: + + source /usr/share/google-cloud-sdk/completion.zsh.inc diff --git a/srcpkgs/google-cloud-sdk/template b/srcpkgs/google-cloud-sdk/template new file mode 100644 index 00000000000..cf0b9f58444 --- /dev/null +++ b/srcpkgs/google-cloud-sdk/template @@ -0,0 +1,44 @@ +# Template file for 'google-cloud-sdk' +pkgname=google-cloud-sdk +version=216.0.0 +revision=1 +wrksrc=$pkgname +noarch=yes +depends="python" +short_desc="Command-line interface for Google Cloud Platform products and services" +maintainer="Daniel Santana " +license="Apache-2.0" +homepage="https://cloud.google.com/sdk" +distfiles="https://dl.google.com/dl/cloudsdk/release/downloads/for_packagers/linux/${pkgname}_${version}.orig.tar.gz" +checksum=2c7c5ae667fb1fab1185b4aedb28ff4e30dce3a5159751aa47529035b5fc848b + +do_install() { + vmkdir usr/lib/$pkgname + vcopy lib usr/lib/$pkgname + vcopy bin usr/lib/$pkgname + vcopy data usr/lib/$pkgname + vcopy platform usr/lib/$pkgname + vcopy .install usr/lib/$pkgname + + vmkdir usr/bin + for f in $(find $DESTDIR/usr/lib/$pkgname/bin -maxdepth 1 -type f -exec basename {} \;); do + ln -sf ../lib/$pkgname/bin/$f $DESTDIR/usr/bin/$f + done + + vmkdir usr/share/$pkgname + vcopy 'completion.*.inc' usr/share/google-cloud-sdk + + vmkdir usr/share/bash-completion/completions + ln -sf ../../$pkgname/completion.bash.inc $DESTDIR/usr/share/bash-completion/completions/gcloud + ln -sf gcloud $DESTDIR/usr/share/bash-completion/completions/gsutil + ln -sf gcloud $DESTDIR/usr/share/bash-completion/completions/bq + + for f in help/man/**/*; do + vman $f + done + + vdoc README + vdoc VERSION + vdoc RELEASE_NOTES + vlicense LICENSE +} diff --git a/srcpkgs/google-cloud-sdk/update b/srcpkgs/google-cloud-sdk/update new file mode 100644 index 00000000000..4ffa10e44e9 --- /dev/null +++ b/srcpkgs/google-cloud-sdk/update @@ -0,0 +1 @@ +site="https://dl.google.com/dl/cloudsdk/release/sha256.txt"