43 lines
1.3 KiB
Bash
43 lines
1.3 KiB
Bash
# Template file for 'teams-bin'
|
|
pkgname=teams-bin
|
|
version=1.4.00.7556
|
|
revision=1
|
|
archs="x86_64"
|
|
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=ebd01ef8c63f2e63f665994e20c159c1692d9b3e1a682df929b63d00bb1c5379
|
|
|
|
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
|
|
}
|