master-pdf-editor.sh 955 Bytes
Newer Older
1 2 3 4
#!/bin/sh

PKGNAME=master-pdf-editor
SUPPORTEDARCHES="x86_64"
5
VERSION="$2"
6 7 8 9
DESCRIPTION="Master PDF Editor from the official site"

. $(dirname $0)/common.sh

10
PKG=''
11 12 13
repack=''
# Strict supported list
case $(epm print info -e) in
14
    AstraLinuxCE/*|Debian/9|Ubuntu/20)
15
        PKG="master-pdf-editor-$VERSION-qt5.9.x86_64.deb"
16
        ;;
17
    AstraLinuxSE/1.7*|Debian/*|Ubuntu/*)
18
        PKG="master-pdf-editor-$VERSION-qt5.x86_64.deb"
19
        ;;
20
    RedOS/*|AlterOS/*|ALTLinux/*)
21
        PKG="master-pdf-editor-$VERSION-qt5.x86_64.rpm"
22 23 24 25
        repack='--repack'
        ;;
esac

26 27 28
if [ -z "$PKG" ] ; then
    case $(epm print info -p) in
        rpm)
29
            PKG="master-pdf-editor-$VERSION-qt5.x86_64.rpm"
30 31
            ;;
        *)
32
            PKG="master-pdf-editor-$VERSION-qt5.x86_64.deb"
33 34 35 36
            ;;
    esac
fi

37
PKGURL=$(epm tool eget --list --latest https://code-industry.ru/get-master-pdf-editor-for-linux/ $PKG)
38

39
epm $repack install "$PKGURL"