Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nurlan
eepm
Commits
f3148db8
Commit
f3148db8
authored
Aug 24, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add VK Teams support
parent
2e9014b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
0 deletions
+61
-0
vkteams.sh
play.d/vkteams.sh
+17
-0
vkteams.sh
repack.d/vkteams.sh
+44
-0
No files found.
play.d/vkteams.sh
0 → 100755
View file @
f3148db8
#!/bin/sh
PKGNAME
=
vkteams
SUPPORTEDARCHES
=
"x86_64"
DESCRIPTION
=
"VK Teams for Linux from the official site"
.
$(
dirname
$0
)
/common.sh
# TODO:
VERSION
=
"1.0"
PKGURL
=
"https://vkteams-www.hb.bizmrg.com/linux/x64/vkteams.tar.xz"
PKGFILE
=
"/tmp/
$PKGNAME
-
$VERSION
.tar.xz"
epm tool eget
-O
$PKGFILE
$PKGURL
||
exit
epm
install
--repack
"
$PKGFILE
"
||
exit
repack.d/vkteams.sh
0 → 100755
View file @
f3148db8
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
vkteams
.
$(
dirname
$0
)
/common.sh
subst
"s|^Group:.*|Group: Networking/Instant messaging|"
$SPEC
#subst "s|^License: unknown$|License: GPLv2|" $SPEC
subst
"s|^URL:.*|URL: https://teams.vk.com/|"
$SPEC
subst
"s|^Summary:.*|Summary: VK Teams|"
$SPEC
# move package to /opt
mkdir
-p
$BUILDROOT$PRODUCTDIR
mv
$BUILDROOT
/
{
$PRODUCT
,qt.conf,lib,libexec,QtQuick.2,QtQuick,plugins,resources
}
$BUILDROOT$PRODUCTDIR
||
fatal
subst
"s|
\"
/|
\"
$PRODUCTDIR
/|"
$SPEC
add_bin_link_command
$PRODUCT
# create desktop file
mkdir
-p
$BUILDROOT
/usr/share/applications/
cat
<<
EOF
>
$BUILDROOT
/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
.png
Exec=vkteams -urlcommand %u
Categories=InstantMessaging;Social;Chat;Network;
Terminal=false
MimeType=x-scheme-handler/vkteams;x-scheme-handler/myteam-messenger;
Keywords=vkteams;
EOF
pack_file /usr/share/applications/
$PRODUCT
.desktop
ICONURL
=
https://is1-ssl.mzstatic.com/image/thumb/Purple122/v4/a8/36/64/a83664d6-9401-a8a4-c845-89e0c3ab0c89/icons-bundle.png/246x0w.png
mkdir
-p
$BUILDROOT
/usr/share/pixmaps/
epm tool eget
-O
$BUILDROOT
/usr/share/pixmaps/
$PRODUCT
.png
$ICONURL
[
-s
$BUILDROOT
/usr/share/pixmaps/
$PRODUCT
.png
]
&&
pack_file /usr/share/pixmaps/
$PRODUCT
.png
||
"echo Can't download icon for the program."
subst
"s|.*
$PRODUCTDIR
/unittests.*||"
$SPEC
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment