mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
development/google-go-lang: Updated for version 1.7.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
921a3d03c1
commit
1ccc888681
3 changed files with 11 additions and 27 deletions
|
@ -1,15 +0,0 @@
|
|||
config() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
# If there's no config file by that name, mv it over:
|
||||
if [ ! -r $OLD ]; then
|
||||
mv $NEW $OLD
|
||||
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
||||
# toss the redundant copy
|
||||
rm $NEW
|
||||
fi
|
||||
# Otherwise, we leave the .new copy for the admin to consider...
|
||||
}
|
||||
|
||||
config etc/profile.d/go.csh.new
|
||||
config etc/profile.d/go.sh.new
|
|
@ -27,8 +27,8 @@
|
|||
# SOFTWARE.
|
||||
|
||||
PRGNAM=google-go-lang
|
||||
VERSION=${VERSION:-1.6.3}
|
||||
BUILD=${BUILD:-2}
|
||||
VERSION=${VERSION:-1.7}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
RELEASE=${RELEASE:-linux}
|
||||
|
@ -37,13 +37,13 @@ RUN_TEST=${RUN_TEST:-false}
|
|||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
if [ "$ARCH" = "i586" ]; then
|
||||
LIBDIRSUFFIX=""
|
||||
GOARCH="386"
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
|
@ -103,19 +103,19 @@ cd ..
|
|||
|
||||
# Put the profile scripts for setting PATH and env variables
|
||||
mkdir -p $PKG/etc/profile.d
|
||||
cat > $PKG/etc/profile.d/go.csh.new << EOF
|
||||
cat > $PKG/etc/profile.d/go.csh << EOF
|
||||
#!/bin/csh
|
||||
setenv GOROOT ${GOROOT_FINAL}
|
||||
setenv PATH \${GOROOT}/bin:\${PATH}
|
||||
EOF
|
||||
cat > $PKG/etc/profile.d/go.sh.new << EOF
|
||||
cat > $PKG/etc/profile.d/go.sh << EOF
|
||||
#!/bin/sh
|
||||
export GOROOT="${GOROOT_FINAL}"
|
||||
export PATH="\${GOROOT}/bin:\${PATH}"
|
||||
EOF
|
||||
|
||||
chmod 0755 $PKG/etc/profile.d/go.csh.new
|
||||
chmod 0755 $PKG/etc/profile.d/go.sh.new
|
||||
chmod 0755 $PKG/etc/profile.d/go.csh
|
||||
chmod 0755 $PKG/etc/profile.d/go.sh
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
|
@ -125,7 +125,6 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
|||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="google-go-lang"
|
||||
VERSION="1.6.3"
|
||||
VERSION="1.7"
|
||||
HOMEPAGE="http://golang.org"
|
||||
DOWNLOAD="https://storage.googleapis.com/golang/go1.6.3.src.tar.gz"
|
||||
MD5SUM="bf3fce6ccaadd310159c9e874220e2a2"
|
||||
DOWNLOAD="https://storage.googleapis.com/golang/go1.7.src.tar.gz"
|
||||
MD5SUM="a30c3bd1a7fcc6a48acfb74936a19b4c"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
Loading…
Reference in a new issue