teams.sh 928 Bytes
Newer Older
1 2
#!/bin/sh

3
PKGNAME=teams
4
SUPPORTEDARCHES="x86_64"
5
VERSION="$2"
6 7 8
# After April 12, 2023, Microsoft Teams Free (classic), the legacy free Teams app for business, will no longer be available.
# https://www.microsoft.com/en-us/microsoft-teams/free-classic-retirement?rtc=1
DESCRIPTION='' #"Microsoft Teams for Linux from the official site"
9

10
. $(dirname $0)/common.sh
11

12
repack=''
13
pkgtype="$(epm print info -p)"
14 15 16 17 18

if [ "$pkgtype" = "deb" ] ; then
    URL="https://packages.microsoft.com/repos/ms-teams/pool/main/t/teams"
    arch=amd64
else
19
    URL="https://packages.microsoft.com/yumrepos/ms-teams"
20 21 22 23
    arch=x86_64
    pkgtype=rpm
fi

24
if [ "$(epm print info -s)" = "alt" ] ; then
25 26
    repack="--repack"
fi
27 28

# rpm and deb contains the same binaries
29
# $ diff -ru teams-1.5.00.23861-1.x86_64 teams_1.5.00.23861_amd64
30 31

# epm uses eget to download * names
32
epm install $repack "$URL/$(epm print constructname teams "$VERSION" $arch $pkgtype)"