mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
development/visual-studio-code: Fixed build on i486.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
8e7847ab57
commit
815ffb6cc6
1 changed files with 19 additions and 15 deletions
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue