Commit b6e89210 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play mailruagent: rewritten

parent 7cdde317
......@@ -13,9 +13,22 @@ else
fi
mkdir opt
mv agent.tar opt/$PRODUCT || fatal
mv agent* opt/$PRODUCT || fatal
# https://webagent.mail.ru/favicon.ico
install_file ipfs://QmZNK3w2i2CTUwfHfxiJR6HR2CDaALUUhJSq4bfoAEUMMH /usr/share/pixmaps/$PRODUCT.png
PKGNAME=$PRODUCT-$VERSION.tar
erc pack $PKGNAME opt/$PRODUCT
erc pack $PKGNAME opt/$PRODUCT usr
cat <<EOF >$PKG.eepm.yaml
name: $PRODUCT
group: Networking/Instant messaging
license: Proprietary
url: https://agent.mail.ru/linux
summary: Mail.ru agent
description: Mail.ru agent.
EOF
return_tar $PKGNAME
......@@ -3,8 +3,7 @@
PKGNAME=mailruagent
SUPPORTEDARCHES="x86_64"
VERSION="$2"
# is not supported
DESCRIPTION='' #"Mail.ru Agent for Linux from the official site"
DESCRIPTION="Mail.ru Agent for Linux from the official site"
URL="https://agent.mail.ru/linux"
. $(dirname $0)/common.sh
......@@ -18,7 +17,3 @@ fi
PKGURL="https://hb.bizmrg.com/agent-www/linux/x64/agent.tar.xz"
install_pack_pkgurl "$VERSION"
#PKGURL="$(eget -O- -H Snap-Device-Series:16 https://api.snapcraft.io/v2/snaps/info/agent | epm --inscript tool json -b | grep '\["channel-map",0,"download","url"\]' | head -n1 | sed -e 's|.*"\(.*\)"$|\1|' )"
#epm install "$PKGURL"
......@@ -3,20 +3,11 @@
BUILDROOT="$1"
SPEC="$2"
PREINSTALL_PACKAGES="glib2 libdbus libexpat libgbm libgio libgpg-error libuuid zlib fontconfig libGL"
. $(dirname $0)/common.sh
subst "s|^Group:.*|Group: Networking/Instant messaging|" $SPEC
subst "s|^License: unknown$|Proprietary|" $SPEC
subst "s|^URL:.*|URL: https://https://agent.mail.ru/linux|" $SPEC
subst "s|^Summary:.*|Summary: Mail.ru Agent for Linux|" $SPEC
add_bin_exec_command $PRODUCT
add_bin_link_command $PRODUCT $PRODUCTDIR/agent
# create desktop file
mkdir -p $BUILDROOT/usr/share/applications/
cat <<EOF >$BUILDROOT/usr/share/applications/$PRODUCT.desktop
cat <<EOF | create_file /usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Version=1.0
Type=Application
......@@ -30,33 +21,6 @@ MimeType=x-scheme-handler/icq;
Keywords=icq;
EOF
pack_file /usr/share/applications/$PRODUCT.desktop
# https://hb.bizmrg.com/icq-www/linux/x64/packages/10.0.13286/icq.png
install_file https://dashboard.snapcraft.io/site_media/appmedia/2020/04/icq_copy.png /usr/share/pixmaps/$PRODUCT.png
subst "s|.*/opt/icq/unittests.*||" $SPEC
# ignore embedded libs
filter_from_requires libQt5 libxcb "libX.*"
if epm assure patchelf ; then
cd $BUILDROOT$PRODUCTDIR
for i in $PRODUCT ; do
a= patchelf --set-rpath '$ORIGIN/lib' $i
done
for i in lib/*.so.* ; do
a= patchelf --set-rpath '$ORIGIN' $i
done
for i in QtQuick.2/lib*.so ; do
a= patchelf --set-rpath '$ORIGIN/../lib' $i
done
for i in QtQuick/*/lib*.so ; do
a= patchelf --set-rpath '$ORIGIN/../../lib' $i
done
fi
set_autoreq 'yes'
add_libs_requires
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