summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--network/google-cli/google-cli.SlackBuild13
-rw-r--r--network/google-cli/google-cli.info8
2 files changed, 16 insertions, 5 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
diff --git a/network/google-cli/google-cli.info b/network/google-cli/google-cli.info
index bcc8459c26..8dfc65e9c3 100644
--- a/network/google-cli/google-cli.info
+++ b/network/google-cli/google-cli.info
@@ -1,10 +1,10 @@
PRGNAM="google-cli"
-VERSION="2.8"
+VERSION="2.9"
HOMEPAGE="https://github.com/jarun/google-cli/"
-DOWNLOAD="https://github.com/jarun/googler/archive/v2.8/googler-2.8.tar.gz"
-MD5SUM="afeb59456d8393cd2359459f9c99ee81"
+DOWNLOAD="https://github.com/jarun/googler/archive/v2.9/googler-2.9.tar.gz"
+MD5SUM="e2f6d2a2a666c6691cb1a38a52f3aec1"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
+REQUIRES="python3"
MAINTAINER="Edinaldo P. Silva"
EMAIL="edps.mundognu@gmail.com"