summaryrefslogtreecommitdiff
path: root/network/google-cli/google-cli.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/google-cli/google-cli.SlackBuild')
-rw-r--r--network/google-cli/google-cli.SlackBuild13
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