Skip to content

Commit

Permalink
New package: teams-bin-1.3.00.16851
Browse files Browse the repository at this point in the history
Closes: #22398
  • Loading branch information
Piraty committed Jun 30, 2020
1 parent b7b9628 commit 2226a47
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
2 changes: 2 additions & 0 deletions srcpkgs/teams-bin/files/teams-wrapper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
LD_LIBRARY_PATH=/usr/lib/teams exec /usr/lib/teams/teams "$@"
43 changes: 43 additions & 0 deletions srcpkgs/teams-bin/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Template file for 'teams-bin'
pkgname=teams-bin
version=1.3.00.16851
revision=1
archs="x86_64"
hostmakedepends="xz"
short_desc="Official Microsoft Teams client"
maintainer="Piraty <piraty1@inbox.ru>"
license="custom:Proprietary"
homepage="https://teams.microsoft.com/downloads"
distfiles="https://packages.microsoft.com/repos/ms-teams/pool/main/t/teams/teams_${version}_amd64.deb"
checksum=23838c8f8dea4960dce8bba559cd7ee3cdedc78ea7fdb226139b5b2204eee4d6

repository=nonfree
restricted=yes

do_extract() {
ar p "${XBPS_SRCDISTDIR}/${pkgname}-${version}/teams_${version}_amd64.deb" data.tar.xz | bsdtar --extract --xz -f - -C .
}

do_install() {
# use our simple wrapper instead of the provided one
vbin ${FILESDIR}/teams-wrapper.sh teams

vmkdir usr/lib/teams
vcopy usr/share/teams usr/lib/

vmkdir usr/share
vcopy usr/share/applications usr/share/
vcopy usr/share/pixmaps usr/share/

vlicense usr/share/teams/resources/ReadmeFirstTermsofUse.txt
vlicense usr/share/teams/resources/ThirdPartyNotice.txt
vlicense usr/share/teams/LICENSE
vlicense usr/share/teams/LICENSES.chromium.html
}

post_install() {
# purge bundled libraries, but keep libffmpeg.so (not provided by Void)
for item in libEGL.so libGLESv2.so swiftshader/libEGL.so swiftshader/libGLESv2.so ; do
rm ${DESTDIR}/usr/lib/teams/$item
done
}
2 changes: 2 additions & 0 deletions srcpkgs/teams-bin/update
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
site=https://packages.microsoft.com/repos/ms-teams/pool/main/t/teams/
pattern='href="teams_\K[\d\.]+(?=_amd64\.deb")'

0 comments on commit 2226a47

Please sign in to comment.