teams-bin: don't manually extract deb

This commit is contained in:
classabbyamp 2022-11-11 02:39:42 -05:00 committed by classabbyamp
parent 92de98c979
commit 586d812034

View file

@ -3,20 +3,16 @@ pkgname=teams-bin
version=1.5.00.23861
revision=1
archs="x86_64"
create_wrksrc=yes
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=87462709e257fff9784de809559b5abd5dc7af18d8505d856b92a66989995bc1
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
@ -32,9 +28,7 @@ do_install() {
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 those not provided by Void
mkdir libsave
for lib in libffmpeg.so; do