whatsapp.sh 1.1 KB
Newer Older
1 2 3 4
#!/bin/sh

PKGNAME=whatsapp-for-linux
SUPPORTEDARCHES="x86_64"
5
VERSION="$2"
6
DESCRIPTION='An unofficial WhatsApp desktop application (from the repository if the package is there, or from the official site)'
7 8 9

. $(dirname $0)/common.sh

10
if epm install $PKGNAME ; then
11
    exit 0
12 13 14
fi

[ "$(epm print info -s)" = "alt" ] && fatal "ALT is not supports $PKGNAME AppImage for now."
15 16 17 18 19 20 21

#case "$(epm print info -d)" in
#    ALTLinux|ALTServer)
#        epm install --skip-installed at-spi2-atk glib2 libalsa libatk libat-spi2-core libcairo libcups libdbus libdbus-glib libdbusmenu libdbusmenu-gtk2 libdrm libexpat libgbm libgdk-pixbuf libgio libgtk+2 libgtk+3 libindicator libpango libX11 libxcb libXcomposite libXdamage libXext libXfixes libxkbcommon libXrandr
#        ;;
#esac
arch=x86_64
22
# sh: symbol lookup error: /tmp/.private/lav/.mount_whatsaxhRMDh/opt/libc/lib/x86_64-linux-gnu/libc.so.6: undefined symbol: __libc_enable_secure, version GLIBC_PRIVATE
23
URL=$(epm tool eget --list --latest https://github.com/eneshecan/whatsapp-for-linux/releases "$PKGNAME-$VERSION-$arch.AppImage") || fatal "Can't get package URL"
24 25
epm install $URL