-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
306802e
commit 8eb6631
Showing
4 changed files
with
546 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
app-admin/google-cloud-cli-bin/google-cloud-cli-bin-502.0.0.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Copyright 2020-2023 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
DESCRIPTION="Interact with the Google Cloud Platform" | ||
HOMEPAGE="https://cloud.google.com/cli" | ||
SITE="https://dl.google.com/dl/cloudsdk/channels/rapid/downloads" | ||
SRC_URI=" | ||
amd64? ( ${SITE}/google-cloud-cli-${PV}-linux-x86_64.tar.gz ) | ||
arm64? ( ${SITE}/google-cloud-cli-${PV}-linux-arm.tar.gz ) | ||
" | ||
|
||
LICENSE="Apache-2.0" | ||
SLOT="0" | ||
KEYWORDS="amd64 arm64 arm" | ||
|
||
QA_PREBUILT=" | ||
google-cloud-sdk/bin/anothoscli | ||
google-cloud-sdk/bin/gcloud-crc32c | ||
" | ||
RESTRICT="bindist mirror" | ||
S="${WORKDIR}" | ||
|
||
src_install() { | ||
mkdir -p "${D}/opt/google-cloud-sdk" | ||
cp -r "${S}/google-cloud-sdk/"* "${D}/opt/google-cloud-sdk" || die "Install failed!" | ||
|
||
dosym "${D}/opt/google-cloud-sdk/bin/gcloud" /usr/bin/gcloud | ||
dosym "${D}/opt/google-cloud-sdk/bin/gsutil" /usr/bin/gsutil | ||
|
||
chmod 4755 "${D}/opt/google-cloud-sdk/bin/gsutil" | ||
chmod 4755 "${D}/opt/google-cloud-sdk/bin/gcloud" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.