aboutsummaryrefslogtreecommitdiff
path: root/academic/megax
diff options
context:
space:
mode:
Diffstat (limited to 'academic/megax')
-rw-r--r--academic/megax/megax.SlackBuild16
-rw-r--r--academic/megax/megax.desktop2
-rw-r--r--academic/megax/megax.info10
3 files changed, 16 insertions, 12 deletions
diff --git a/academic/megax/megax.SlackBuild b/academic/megax/megax.SlackBuild
index 165c9f4de610..7711d715a58d 100644
--- a/academic/megax/megax.SlackBuild
+++ b/academic/megax/megax.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
-# Slackware build script for megax (formerly 'megacc')
+# Slackware build script for megax (formerly 'megacc', called now simply 'mega')
# This takes the place of "megacc" in 2018, as it includes also the GUI
# of the program (megax) in addition to megacc.
@@ -27,11 +27,12 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=megax
-VERSION=${VERSION:-10.2.5_1}
+VERSION=${VERSION:-11.0.11_1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
+SRCNAM=mega
DEBVER=$(echo $VERSION | tr _ -)
if [ -z "$ARCH" ]; then
@@ -73,7 +74,7 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
mkdir $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
-ar p $CWD/${PRGNAM}_${DEBVER}_${DEBARCH}.deb data.tar.xz | tar xJv
+ar p $CWD/${SRCNAM}_${DEBVER}_${DEBARCH}.deb data.tar.xz | tar xJv
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -82,20 +83,23 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Fix path in runmega.sh for x86_64
-sed -i "s|/usr/lib/megax|/usr/lib${LIBDIRSUFFIX}/megax|g" usr/lib/$PRGNAM/runmega.sh
+sed -i "s|/usr/lib/megax|/usr/lib${LIBDIRSUFFIX}/$PRGNAM|g" usr/lib/mega/runmega.sh
# Place things in /usr/lib and just create symlinks later.
# This is what Debian's and RedHat's packages do.
mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}
-cp -a usr/lib/$PRGNAM $PKG/usr/lib${LIBDIRSUFFIX}
+cp -a usr/lib/mega $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM
# Copy man pages to their proper place.
cp -a usr/local/share/man $PKG/usr
+sed -i "s:lib:lib${LIBDIRSUFFIX}:" $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM/runmega.sh
+sed -i "s:mega:$PRGNAM:" $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM/runmega.sh
+
mkdir -p $PKG/usr/bin
cd $PKG/usr/bin
ln -s ../lib${LIBDIRSUFFIX}/$PRGNAM/megacc
- ln -s ../lib${LIBDIRSUFFIX}/$PRGNAM/runmega.sh megax
+ ln -s ../lib${LIBDIRSUFFIX}/$PRGNAM/runmega.sh runmega
cd -
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
diff --git a/academic/megax/megax.desktop b/academic/megax/megax.desktop
index 336d4eb395b4..4ec785dbf3d4 100644
--- a/academic/megax/megax.desktop
+++ b/academic/megax/megax.desktop
@@ -1,7 +1,7 @@
[Desktop Entry]
Categories=Education;
Comment=Molecular evolutionary genetics analysis
-Exec=megax
+Exec=runmega
Icon=megax
Name=MEGA X
StartupNotify=false
diff --git a/academic/megax/megax.info b/academic/megax/megax.info
index 17a8b6a7ce5b..14ed8c455542 100644
--- a/academic/megax/megax.info
+++ b/academic/megax/megax.info
@@ -1,10 +1,10 @@
PRGNAM="megax"
-VERSION="10.2.5_1"
+VERSION="11.0.11_1"
HOMEPAGE="http://www.megasoftware.net/"
-DOWNLOAD="https://www.megasoftware.net/releases/megax_10.2.5-1_i386.deb"
-MD5SUM="cda0edb08a1688e4b82d0f0f61722741"
-DOWNLOAD_x86_64="https://www.megasoftware.net/releases/megax_10.2.5-1_amd64.deb"
-MD5SUM_x86_64="98fbfb10289e24efaea7d525e3316726"
+DOWNLOAD="UNSUPPORTED"
+MD5SUM=""
+DOWNLOAD_x86_64="https://www.megasoftware.net/releases/mega_11.0.11-1_amd64.deb"
+MD5SUM_x86_64="83a2aa21353eabeaf084f38bce496a23"
REQUIRES=""
MAINTAINER="Petar Petrov"
EMAIL="slackalaxy@gmail.com"