mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
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:
parent
2900f8345c
commit
258eaf03ea
2 changed files with 14 additions and 15 deletions
|
@ -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
|
||||
|
|
|
@ -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=""
|
||||
|
|
Loading…
Reference in a new issue