void-packages/srcpkgs/google-cloud-sdk/template
2019-01-09 00:30:14 -02:00

44 lines
1.3 KiB
Bash

# Template file for 'google-cloud-sdk'
pkgname=google-cloud-sdk
version=229.0.0
revision=1
noarch=yes
wrksrc=$pkgname
depends="python"
short_desc="Command-line interface for Google Cloud Platform products and services"
maintainer="Daniel Santana <daniel@santana.tech>"
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=1d0da0357229e1ec79fae5322867b3353465cf3575f3e136553f18f5e466c5b9
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
}