summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author D Woodfall2023-05-16 17:07:55 +0200
committer Willy Sudiarto Raharjo2023-05-20 06:17:56 +0200
commit258eaf03eac01d2b17b2a307c7bc98b6d1b9cd24 (patch)
treeda3232bf6f095689cb1abdb631f864623b873be4
parent2900f8345caf1db5abf6434f3dbe50f7bbfa120a (diff)
downloadslackbuilds-258eaf03eac01d2b17b2a307c7bc98b6d1b9cd24.tar.gz
academic/megax: Fix and mv ARCH sect.
Signed-off-by: bedlam <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--academic/megax/megax.SlackBuild25
-rw-r--r--academic/megax/megax.info4
2 files changed, 14 insertions, 15 deletions
diff --git a/academic/megax/megax.SlackBuild b/academic/megax/megax.SlackBuild
index 7711d715a5..4f20e38180 100644
--- a/academic/megax/megax.SlackBuild
+++ b/academic/megax/megax.SlackBuild
@@ -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
diff --git a/academic/megax/megax.info b/academic/megax/megax.info
index 14ed8c4555..3d1c83a869 100644
--- a/academic/megax/megax.info
+++ b/academic/megax/megax.info
@@ -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=""