Commit 6eb5f1d9 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add unusable whatsapp install

parent 57d389d9
#!/bin/sh
PKGNAME=whatsapp-for-linux
SUPPORTEDARCHES="x86_64"
DESCRIPTION='' #"An unofficial WhatsApp desktop application for Linux"
. $(dirname $0)/common.sh
#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
URL=$(epm tool eget --list --latest https://github.com/eneshecan/whatsapp-for-linux/releases "$PKGNAME-*-$arch.AppImage") || fatal "Can't get package URL"
epm install $URL
......@@ -16,7 +16,30 @@ subst "s|\"/$ROOTDIR/|\"$PRODUCTDIR/|" $SPEC
fix_chrome_sandbox
cd $BUILDROOT$PRODUCTDIR
# TODO
if false ; then
# on whatsapp-for-linux example
epm assure patchelf || exit
# hack for
# ldd: ERROR: /var/tmp/tmp.kroKx0mR2G/whatsapp-for-linux-1.5.1-x86_64.AppImage.tmpdir/whatsapp-for-linux--1.5.1/opt/whatsapp-for-linux-/bin/systemd-hwdb: program interpreter /tmp/appimage-fcba8c70-fea2-41f2-8775-57ce8e19ffe9-ld-linux-x86-64.so.2 not found
find -executable -type f | while read elf ; do
file $elf | grep -q "ELF 64-bit.*interpreter" || continue
file $elf | grep -q "interpreter /lib64/ld-linux-x86-64.so.2" && continue
a= patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 $elf
done
for i in usr/lib/x86_64-linux-gnu/*.so* lib/x86_64-linux-gnu/*.so* lib/x86_64-linux-gnu/security/*.so* opt/libc/lib/x86_64-linux-gnu/libc.so.6 ; do
[ -s "$i" ] || continue
a= patchelf --set-rpath '$ORIGIN:$ORIGIN/..:$ORIGIN/../../usr/lib/x86_64-linux-gnu:$ORIGIN/../../../usr/lib/x86_64-linux-gnu:' "$i"
file $i | grep -q "ELF 64-bit.*interpreter" || continue
file $i | grep -q "interpreter /lib64/ld-linux-x86-64.so.2" && continue
a= patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 $i
done
fi
DESKTOPFILE="$(echo *.desktop | head -n1)"
ICONFILE="$(cat $DESKTOPFILE | grep "^Icon" | head -n1 | sed -e 's|Icon=||').png"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment