Commit 4efbd85b authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play vkteams: switch to deb package

epm repack vkteams: drop Qt plugins depend on missed libs
parent ebda8e12
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
VERSION="$3"
. $(dirname $0)/common.sh
if echo "$TAR" | grep -q "vkteams.tar.xz" ; then
erc "$TAR" || fatal
else
fatal "We support only vkteams.tar.xz"
fi
mkdir opt
mv vkteams* opt/$PRODUCT || fatal
ICONURL=https://is1-ssl.mzstatic.com/image/thumb/Purple122/v4/a8/36/64/a83664d6-9401-a8a4-c845-89e0c3ab0c89/icons-bundle.png/246x0w.png
install_file $ICONURL /usr/share/pixmaps/$PRODUCT.png
PKG=$PRODUCT-$VERSION.tar
erc pack $PKG opt/$PRODUCT usr
cat <<EOF >$PKG.eepm.yaml
name: $PRODUCT
group: Networking/Instant messaging
license: Proprietary
url: https://teams.vk.com/
summary: VK Teams
description: VK Teams desktop client.
EOF
return_tar $PKG
...@@ -10,9 +10,6 @@ URL="https://biz.mail.ru/teams" ...@@ -10,9 +10,6 @@ URL="https://biz.mail.ru/teams"
warn_version_is_not_supported warn_version_is_not_supported
# TODO: PKGURL="https://vkteams-www.hb.bizmrg.com/linux/x64/vkteams.deb"
VERSION="1.0"
PKGURL="https://vkteams-www.hb.bizmrg.com/linux/x64/vkteams.tar.xz" install_pkgurl
install_pack_pkgurl "$VERSION"
...@@ -7,48 +7,26 @@ PRODUCT=vkteams ...@@ -7,48 +7,26 @@ PRODUCT=vkteams
. $(dirname $0)/common.sh . $(dirname $0)/common.sh
cat <<EOF | create_exec_file /usr/bin/$PRODUCT move_to_opt /usr/local/vkteams
#!/bin/sh fix_desktop_file /usr/local/vkteams/vkteams
# Hack against https://bugzilla.altlinux.org/43779 fix_desktop_file /usr/share/pixmaps/vkteams.png vkteams
# add fake desktop-file-install to path to skip desktop creating
export PATH=$PRODUCTDIR:$PATH # TODO: drop or mask all Qt plugins?
exec $PRODUCTDIR/$PRODUCT "\$@"
EOF
cat <<'EOF' | create_exec_file $PRODUCTDIR/desktop-file-install
#!/bin/sh
while [ -n "$1" ] ; do
case "$1" in
--*)
shift
continue
;;
esac
rm -fv "$1"
shift
done
EOF
cat <<EOF | create_file /usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=VK Teams
Comment=Official desktop application for the VK Teams messaging service
Icon=$PRODUCT
Exec=$PRODUCT -urlcommand %u
Categories=InstantMessaging;Social;Chat;Network;
Terminal=false
MimeType=x-scheme-handler/vkteams;x-scheme-handler/myteam-messenger;
Keywords=vkteams;
EOF
subst "s|.*$PRODUCTDIR/unittests.*||" $SPEC
# to skip obsoleted require libjasper.so.1()(64bit) # to skip obsoleted require libjasper.so.1()(64bit)
remove_file $PRODUCTDIR/plugins/imageformats/libqjp2.so remove_file $PRODUCTDIR/plugins/imageformats/libqjp2.so
# to skip obsoleted libsqlite.so.0()(64bit) # drop unneeded plugins
remove_file $PRODUCTDIR/plugins/sqldrivers/libqsqlite2.so remove_file $PRODUCTDIR/plugins/sqldrivers/*.so
# libavcodec.so.61()(64bit)
# libavformat.so.61()(64bit)
# libavutil.so.59()(64bit)
remove_file $PRODUCTDIR/plugins/multimedia/libffmpegmediaplugin.so
remove_file $PRODUCTDIR/lib/libswresample.so.5.1.100
remove_file $PRODUCTDIR/lib/libswscale.so.8.1.100
add_bin_link_command
add_libs_requires 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