diff options
author | David Spencer <idlemoor@slackbuilds.org> | 2016-01-31 14:37:23 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-02-05 07:02:36 +0700 |
commit | 815ffb6cc60841f2e0ffe82c12d1c5ea690678a7 (patch) | |
tree | a72c6f47c9a556f3eeb210136b58ea093649c098 /development | |
parent | 8e7847ab575b2c6f766165b69fe777a0318e2c8e (diff) | |
download | slackbuilds-815ffb6cc60841f2e0ffe82c12d1c5ea690678a7.tar.gz |
development/visual-studio-code: Fixed build on i486.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r-- | development/visual-studio-code/visual-studio-code.SlackBuild | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/development/visual-studio-code/visual-studio-code.SlackBuild b/development/visual-studio-code/visual-studio-code.SlackBuild index f1ed3786c7..26e99e1b5b 100644 --- a/development/visual-studio-code/visual-studio-code.SlackBuild +++ b/development/visual-studio-code/visual-studio-code.SlackBuild @@ -27,32 +27,36 @@ VERSION=${VERSION:-0.9.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i486 ;; - *) ARCH=$( uname -m ) ;; - esac -fi +ARCH=${ARCH:-$(uname -m)} +case "$ARCH" in + i?86) + ARCH=i486 + SRCNAM=VSCode-linux32.zip + SRCDIR=VSCode-linux-ia32 + ;; + x86_64) + SRCNAM=VSCode-linux64.zip + SRCDIR=VSCode-linux-x64 + ;; + *) + echo "$ARCH is not supported" + exit 1 + ;; +esac CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "x86_64" ]; then - PKGSUFFIX=64 -else - PKGSUFFIX=32 -fi - set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf VSCode-linux-x${PKGSUFFIX} -unzip $CWD/VSCode-linux$PKGSUFFIX.zip -cd VSCode-linux-x${PKGSUFFIX} +rm -rf $SRCDIR +unzip $CWD/$SRCNAM +cd $SRCDIR chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ |