academic/megax: Fix and mv ARCH sect.

Signed-off-by: bedlam <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
D Woodfall 2023-05-16 16:07:55 +01:00 committed by Willy Sudiarto Raharjo
parent 2900f8345c
commit 258eaf03ea
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 14 additions and 15 deletions

View file

@ -37,12 +37,22 @@ DEBVER=$(echo $VERSION | tr _ -)
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i386 ;;
arm*) ARCH=arm ;;
i?86) ARCH=i586 ;;
*) ARCH=$( uname -m ) ;;
esac
fi
if [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
DEBARCH="amd64"
elif [[ $ARCH =~ i?86 ]]; then
LIBDIRSUFFIX=""
DEBARCH="i386"
else
printf "\n\n$ARCH is not supported... \n" >/dev/stderr
exit 1
fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
@ -55,17 +65,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i386" ] || [ "$ARCH" = "i486" ] || [ "$ARCH" = "i586" ] || [ "$ARCH" = "i686" ]; then
LIBDIRSUFFIX=""
DEBARCH="i386"
elif [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
DEBARCH="amd64"
else
printf "\n\n$ARCH is not supported... \n"
exit 1
fi
set -e
rm -rf $PKG

View file

@ -1,8 +1,8 @@
PRGNAM="megax"
VERSION="11.0.11_1"
HOMEPAGE="http://www.megasoftware.net/"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
DOWNLOAD="https://www.megasoftware.net/releases/mega_11.0.11-1_i386.deb"
MD5SUM="087a4673f20aec8fd92f18e11683ebbd"
DOWNLOAD_x86_64="https://www.megasoftware.net/releases/mega_11.0.11-1_amd64.deb"
MD5SUM_x86_64="83a2aa21353eabeaf084f38bce496a23"
REQUIRES=""