Commit 30f4d16e authored by Ivan Mazhukin's avatar Ivan Mazhukin Committed by Vitaly Lipatov

epm play mailruagent: drop closed app (eterbug #17865)

parent 4598f3be
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
VERSION="$3"
. $(dirname $0)/common.sh
if echo "$TAR" | grep -q "agent.tar.xz" ; then
erc "$TAR" || fatal
else
fatal "We support only agent.tar.xz"
fi
mkdir opt
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 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
#!/bin/sh
PKGNAME=mailruagent
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Mail.ru Agent for Linux from the official site"
URL="https://agent.mail.ru/linux"
. $(dirname $0)/common.sh
warn_version_is_not_supported
VERSION="*"
if [ "$VERSION" = "*" ] ; then
VERSION=$(eget -O- -H Snap-Device-Series:16 https://api.snapcraft.io/v2/snaps/info/agent | epm --inscript tool json -b | grep version | head -n1 | sed -e 's|.*"\([0-9.]*\)".*|\1|') || fatal "Can't get current version" #'
fi
PKGURL="https://hb.bizmrg.com/agent-www/linux/x64/agent.tar.xz"
install_pack_pkgurl "$VERSION"
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
. $(dirname $0)/common.sh
add_bin_link_command $PRODUCT $PRODUCTDIR/agent
cat <<EOF | create_file /usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=Mail.ru Agent for Linux
Comment=Simple way to communicate and nothing extra. New design, group chats and much more!
Icon=$PRODUCT
Exec=$PRODUCT -urlcommand %u
Categories=InstantMessaging;Social;Chat;Network;
Terminal=false
MimeType=x-scheme-handler/icq;
Keywords=icq;
EOF
subst "s|.*/opt/icq/unittests.*||" $SPEC
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