40 lines
1.2 KiB
Bash
40 lines
1.2 KiB
Bash
# Template file for 'teams-bin'
|
|
pkgname=teams-bin
|
|
version=1.5.00.23861
|
|
revision=1
|
|
archs="x86_64"
|
|
create_wrksrc=yes
|
|
short_desc="Official Microsoft Teams client"
|
|
maintainer="Piraty <mail@piraty.dev>"
|
|
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=87462709e257fff9784de809559b5abd5dc7af18d8505d856b92a66989995bc1
|
|
repository=nonfree
|
|
restricted=yes
|
|
|
|
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
|
|
|
|
# purge bundled libraries, but keep those not provided by Void
|
|
mkdir libsave
|
|
for lib in libffmpeg.so; do
|
|
mv ${DESTDIR}/usr/lib/teams/$lib libsave
|
|
done
|
|
find ${DESTDIR}/usr/lib/teams/ -name '*.so' -delete
|
|
mv libsave/* ${DESTDIR}/usr/lib/teams/
|
|
}
|