2018-04-21 04:31:43 +02:00
|
|
|
# Template file for 'google-cloud-sdk'
|
|
|
|
pkgname=google-cloud-sdk
|
2018-12-05 02:13:14 +01:00
|
|
|
version=227.0.0
|
2018-04-21 04:31:43 +02:00
|
|
|
revision=1
|
|
|
|
noarch=yes
|
2018-11-09 17:16:49 +01:00
|
|
|
wrksrc=$pkgname
|
2018-04-21 04:31:43 +02:00
|
|
|
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"
|
2018-12-05 02:13:14 +01:00
|
|
|
checksum=71920670d0d456f1ae226affca89bb93fda28f56c0b7ba23681547fb6b09515f
|
2018-04-21 04:31:43 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|