summaryrefslogtreecommitdiff
path: root/network/google-cli
diff options
context:
space:
mode:
authorEdinaldo P. Silva <edps.mundognu@gmail.com>2016-12-19 06:08:29 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-12-24 07:33:32 +0700
commit10bd2ed3eb375ed3080074b3d82bf4d39f9d57c9 (patch)
tree3765cc3cb5672e4f8711cd339142b3d14ee1ee88 /network/google-cli
parent6456eb8577b9569943892e6c1b4fc90a2493e571 (diff)
downloadslackbuilds-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')
-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"