lunacy.sh 596 Bytes
Newer Older
1 2 3 4
#!/bin/sh

PKGNAME=lunacy
SUPPORTEDARCHES="x86_64 aarch64"
5
VERSION="$2"
6
DESCRIPTION="Lunacy - Graphic Design Editor"
7
URL="https://icons8.ru/lunacy"
8 9 10

. $(dirname $0)/common.sh

11 12
warn_version_is_not_supported

13 14 15 16 17 18 19 20 21 22 23 24 25 26
arch="$(epm print info -a)"

case "$arch" in
    x86_64)
        file="Lunacy.deb"
        ;;
    aarch64)
        file="Lunacy.ARM.deb"
        ;;
    *)
        fatal "$arch arch is not supported"
        ;;
esac

27
if ! is_glibc_enough 2.34 ; then
28 29 30 31
    #fatal "glibc is too old"
    PKGURL="$(snap_get_pkgurl $URL)"
else
    PKGURL="https://lcdn.icons8.com/setup/$file"
32 33
fi

34
install_pkgurl