diff options
author | Vincent Batts <vbatts@hashbangbash.com> | 2017-10-30 08:21:58 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-10-30 19:44:19 +0700 |
commit | a50313d9e21afebf0454878c8c9a1786105c6965 (patch) | |
tree | f20243b3c1000f0896a9308fc319966fc55b134e | |
parent | edf41f96501bb82ed7f1ff6a87fd32806dca80cd (diff) | |
download | slackbuilds-a50313d9e21afebf0454878c8c9a1786105c6965.tar.gz |
development/google-go-lang: Updated for version 1.8.5
and tidy up the example in the README
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | development/google-go-lang/README | 9 | ||||
-rw-r--r-- | development/google-go-lang/google-go-lang.SlackBuild | 4 | ||||
-rw-r--r-- | development/google-go-lang/google-go-lang.info | 6 |
3 files changed, 10 insertions, 9 deletions
diff --git a/development/google-go-lang/README b/development/google-go-lang/README index 955f284b3f..cc9bd19d5b 100644 --- a/development/google-go-lang/README +++ b/development/google-go-lang/README @@ -17,15 +17,16 @@ to and used, is the GOPATH environment variable. This variable can be colon delimited. For example, once installing the built google-go-lang package, then set in your user's ~/.bashrc something like: - export GOPATH="$HOME/src/go" + export GOPATH="$HOME" Then, you'll be able to use the `go` command to install an additional library that will not need root permission and will be in the compiler's path. Like so: - go get labix.org/v2/mgo + go get golang.org/x/tools/cmd/godoc -Now in ~/src/go, you'll have this library available! +Now in ~/src you'll have this source code checked-out, and a binary built at +~/bin/godoc Since the golang idiom is very `go get'able as a limited user, installed libraries from slackbuilds.org are located outside of GOROOT (which is only for @@ -33,7 +34,7 @@ golang standard library), in /usr/share/gocode By not setting a system-wide GOPATH defaulting to this location, then it is up to the user of whether to include this system path as well, like: - export GOPATH="$HOME/src/go:/usr/share/gocode" + export GOPATH="$HOME:/usr/share/gocode" This system source directory is primarly only for buildtime of slackbuilds. diff --git a/development/google-go-lang/google-go-lang.SlackBuild b/development/google-go-lang/google-go-lang.SlackBuild index 041f3fb16e..556c7dbcb0 100644 --- a/development/google-go-lang/google-go-lang.SlackBuild +++ b/development/google-go-lang/google-go-lang.SlackBuild @@ -5,7 +5,7 @@ # Written by Eric Schultz eric at schultzter.ca # Taken over by Vincent Batts vbatts@hashbangbash.com -# Copyright (c) 2012, 2013, 2014, 2015, 2016 Vincent Batts +# Copyright (c) 2012, 2013, 2014, 2015, 2016, 2017 Vincent Batts # Copyright (c) 2012 Eric Schultz # # Permission is hereby granted, free of charge, to any person obtaining a copy of @@ -27,7 +27,7 @@ # SOFTWARE. PRGNAM=google-go-lang -VERSION=${VERSION:-1.8.4} +VERSION=${VERSION:-1.8.5} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} diff --git a/development/google-go-lang/google-go-lang.info b/development/google-go-lang/google-go-lang.info index 9767e7ac71..f87350fc31 100644 --- a/development/google-go-lang/google-go-lang.info +++ b/development/google-go-lang/google-go-lang.info @@ -1,8 +1,8 @@ PRGNAM="google-go-lang" -VERSION="1.8.4" +VERSION="1.8.5" HOMEPAGE="http://golang.org" -DOWNLOAD="https://storage.googleapis.com/golang/go1.8.4.src.tar.gz" -MD5SUM="b147aa991850297b74b52df85ff8333c" +DOWNLOAD="https://storage.googleapis.com/golang/go1.8.5.src.tar.gz" +MD5SUM="f706909ae635cb42f099bd5586a7c7ba" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |