diff options
author | Edinaldo P. Silva <edps.mundognu@gmail.com> | 2016-12-19 06:08:29 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-12-24 07:33:32 +0700 |
commit | 10bd2ed3eb375ed3080074b3d82bf4d39f9d57c9 (patch) | |
tree | 3765cc3cb5672e4f8711cd339142b3d14ee1ee88 /network/google-cli/google-cli.SlackBuild | |
parent | 6456eb8577b9569943892e6c1b4fc90a2493e571 (diff) | |
download | slackbuilds-10bd2ed3eb375ed3080074b3d82bf4d39f9d57c9.tar.gz |
network/google-cli: Updated for version 2.9.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/google-cli/google-cli.SlackBuild')
-rw-r--r-- | network/google-cli/google-cli.SlackBuild | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/network/google-cli/google-cli.SlackBuild b/network/google-cli/google-cli.SlackBuild index 6ad0807673..5c0aedece6 100644 --- a/network/google-cli/google-cli.SlackBuild +++ b/network/google-cli/google-cli.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=google-cli -VERSION=${VERSION:-2.8} +VERSION=${VERSION:-2.9} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -71,10 +71,21 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Disable self-upgrade mechanism. +make disable-self-upgrade + install -d $PKG/usr/{bin,doc,man/man1} install -D -m755 googler $PKG/usr/bin/googler install -D -m644 googler.1 $PKG/usr/man/man1/googler.1 +# Enable completions. +mkdir -p $PKG/usr/share/fish/vendor_completions.d/ + cp -a auto-completion/fish/googler.fish $PKG/usr/share/fish/vendor_completions.d/googler.fish +mkdir -p $PKG/etc/bash_completion.d/ + cp -a auto-completion/bash/googler-completion.bash $PKG/etc/bash_completion.d/googler +mkdir -p $PKG/usr/share/zsh/site-functions/ + cp -a auto-completion/zsh/_googler $PKG/usr/share/zsh/site-functions/_googler + find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |