This commit is contained in:
Mario Fetka
2022-07-12 15:04:49 +02:00
parent fdb09f2a58
commit b7fef62ebd
43 changed files with 1060 additions and 207 deletions

View File

@@ -1,4 +1,4 @@
DIST teams-1.4.00.7556-1.x86_64.rpm 106077233 BLAKE2B 1e3833f074c209a043bc2903e24a9e794c1e11a9a8882d2b122c2b23bf6c95a98358341399594214234adc8efb46a23e46e0ee1e3e197ad54eb24f208f605cf4 SHA512 00d947adeee82fbf3d35ef071a686b4298a155de781bf4a8023ddc328eebf9d20ed2a3190a608bf8c0583977c418c6fa80939d0cbf5a21c2e8a9f533b63da2bc
EBUILD teams-1.4.00.7556.ebuild 6826 BLAKE2B 5b20c840c7a90f0053d42550b9cbf4cb2c20e406bce4a7acacf519ca4fd6015200edd97967a5c14753c3a3a1151f9b071903ed20a6c29f2adbea765ce10e50fa SHA512 fa688bc87105a0838b645a6a824d8586be2b6397a41bdd0eeba1de395771822a1f6caffa6614bd2c0e1c0691d615f96c13faf81f98d2f63acc81fd84cfe2025f
DIST teams_1.5.00.10453_amd64.deb 84485626 BLAKE2B f9570bedd12dc9113c956d0b9c34c4124939b0a855f73a7611ce640b00fd4a7d8288af94aa3f087482040619c11f79a144e2292dd853254fe4f55fe694165a26 SHA512 69d95e06c67265358f1d995ad9faa21a1af753241031569e7ac88d0cc9c4781985a0839b4fa7e58d176472c7ab15bc8d0876733a2eb710d5d087d2662bc04c30
EBUILD teams-1.5.00.10453.ebuild 3479 BLAKE2B 27c8267f1f19fc53e513d7f85f09d31515beeef14590fa018556f3c3419bbfb6c3c33cb883fb26304bdb52b26d7ffdc0bf61974ffb1f5b4e3925288c77fd6dd9 SHA512 43608ee32dfc5388aed5fd000f7e37d4ea09f7547919f86cb4d8f3ab03cb1506da3bc669c9a77984e5daf8880c6ec9f3089687087992947aa08f1f9efb0c5344
MISC ChangeLog 207 BLAKE2B 3a5894676ecdb05e022ad1583f3cac494375617c58c7b86c0d40c1cd2ade29d54762f868fc7de6da3cf607e1ac68e52f7d16eed27cfb9b40462f2589bda67466 SHA512 db9b0a542e0822e8394eb9afc56f2dcaeb4a8d267be5d5b6b42d98b9504f8650a5522fbcf6b8c9495365e40317e031022fe8efa1ff41dceba9d04845ea9ddccb
MISC metadata.xml 439 BLAKE2B 53292977c5b3e6e5d2b291ac915f99851c9450967b9d32223597a7dc379b85f89850267721ae894f123b4a5d58b1f93e4a7e868cba235fd802d8c9d514d9a6cb SHA512 f41cfa941591df038ef6b918ec5e7d94c7047e56f053b0a3c8b1edfd0cb5db894b39f584ea98906c0a90b782a6b464ba2c508933679009f483a0937ea0e8f47f

View File

@@ -1,172 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
MULTILIB_COMPAT=( abi_x86_64 )
inherit pax-utils rpm multilib-build xdg-utils
DESCRIPTION="Microsoft Teams for Linux is your chat-centered workspace in Office 365"
HOMEPAGE="https://aka.ms/microsoftteams"
SRC_URI="https://packages.microsoft.com/yumrepos/ms-teams/${PN}-${PV}-1.x86_64.rpm"
LICENSE="no-source-code MIT MIT-with-advertising BSD-1 BSD-2 BSD Apache-2.0 Boost-1.0 ISC CC-BY-SA-3.0 CC0-1.0 openssl ZLIB APSL-2 icu Artistic-2 LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64"
IUSE="pax_kernel"
S="${WORKDIR}"
QA_PREBUILT=opt/teams/teams
QA_TEXTRELS=opt/teams/resources/app.asar.unpacked/node_modules/slimcore/bin/slimcore.node
QA_EXECSTACK=opt/teams/resources/app.asar.unpacked/node_modules/slimcore/bin/slimcore.node
RESTRICT="mirror bindist strip" #299368
RDEPEND="
app-crypt/libsecret[${MULTILIB_USEDEP}]
dev-libs/atk[${MULTILIB_USEDEP}]
dev-libs/expat[${MULTILIB_USEDEP}]
dev-libs/glib:2[${MULTILIB_USEDEP}]
dev-libs/nspr[${MULTILIB_USEDEP}]
dev-libs/nss[${MULTILIB_USEDEP}]
gnome-base/gconf:2[${MULTILIB_USEDEP}]
media-libs/alsa-lib[${MULTILIB_USEDEP}]
media-libs/fontconfig:1.0[${MULTILIB_USEDEP}]
media-libs/freetype:2[${MULTILIB_USEDEP}]
media-libs/libv4l[${MULTILIB_USEDEP}]
net-print/cups[${MULTILIB_USEDEP}]
sys-apps/dbus[${MULTILIB_USEDEP}]
sys-devel/gcc[cxx]
virtual/ttf-fonts
x11-libs/cairo[${MULTILIB_USEDEP}]
x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}]
x11-libs/gtk+:2[${MULTILIB_USEDEP}]
x11-libs/libX11[${MULTILIB_USEDEP}]
x11-libs/libXScrnSaver[${MULTILIB_USEDEP}]
x11-libs/libXcomposite[${MULTILIB_USEDEP}]
x11-libs/libXcursor[${MULTILIB_USEDEP}]
x11-libs/libXdamage[${MULTILIB_USEDEP}]
x11-libs/libXext[${MULTILIB_USEDEP}]
x11-libs/libXfixes[${MULTILIB_USEDEP}]
x11-libs/libXi[${MULTILIB_USEDEP}]
x11-libs/libXrandr[${MULTILIB_USEDEP}]
x11-libs/libXrender[${MULTILIB_USEDEP}]
x11-libs/libXtst[${MULTILIB_USEDEP}]
x11-libs/libxcb[${MULTILIB_USEDEP}]
x11-libs/libxkbfile[${MULTILIB_USEDEP}]
x11-libs/pango[${MULTILIB_USEDEP}]"
src_unpack() {
rpm_src_unpack ${A}
}
src_prepare() {
default
sed -e "s!^TEAMS_PATH=.*!TEAMS_PATH=${EPREFIX}/opt/teams/teams!" \
-i usr/bin/teams || die
sed -e "s!^Exec=/usr/bin/teams!Exec=${EPREFIX}/opt/bin/teams!" \
-e "s!^Categories=.*!Categories=Network;InstantMessaging;AudioVideo;!" \
-e "/OnlyShowIn=.*/d" \
-i usr/share/applications/teams.desktop || die
}
src_install() {
insinto /opt/teams/locales
doins usr/share/teams/locales/*.pak
insinto /opt/teams/resources/app.asar.unpacked/node_modules/@microsoft/fasttext-languagedetector/build/Release
doins usr/share/teams/resources/app.asar.unpacked/node_modules/@microsoft/fasttext-languagedetector/build/Release/fastText-languagedetector.node
insinto /opt/teams/resources/app.asar.unpacked/node_modules/@microsoft/fasttext-languagedetector/models
doins usr/share/teams/resources/app.asar.unpacked/node_modules/@microsoft/fasttext-languagedetector/models/*.ftz
insinto /opt/teams/resources/app.asar.unpacked/node_modules/@msteams/electron-modules-package-utils/build/Release
doins usr/share/teams/resources/app.asar.unpacked/node_modules/@msteams/electron-modules-package-utils/build/Release/package-utils.node
insinto /opt/teams/resources/app.asar.unpacked/node_modules/@msteams/node-locale-info-provider/build/Release
doins usr/share/teams/resources/app.asar.unpacked/node_modules/@msteams/node-locale-info-provider/build/Release/node-locale-info-provider.node
insinto /opt/teams/resources/app.asar.unpacked/node_modules/modern-osutils/build/Release
doins usr/share/teams/resources/app.asar.unpacked/node_modules/modern-osutils/build/Release/modern-osutils.node
insinto /opt/teams/resources/app.asar.unpacked/node_modules/media-hid/build/Release
doins usr/share/teams/resources/app.asar.unpacked/node_modules/media-hid/build/Release/media-hid.node
insinto /opt/teams/resources/app.asar.unpacked/node_modules/native-utils/build/Release
doins usr/share/teams/resources/app.asar.unpacked/node_modules/native-utils/build/Release/native-utils.node
insinto /opt/teams/resources/app.asar.unpacked/node_modules/node-spellcheckr/build/Release
doins usr/share/teams/resources/app.asar.unpacked/node_modules/node-spellcheckr/build/Release/spellchecker.node
insinto /opt/teams/resources/app.asar.unpacked/node_modules/keyboard-layout/build/Release
doins usr/share/teams/resources/app.asar.unpacked/node_modules/keyboard-layout/build/Release/keyboard-layout-manager.node
insinto /opt/teams/resources/app.asar.unpacked/node_modules/keytar4/build/Release
doins usr/share/teams/resources/app.asar.unpacked/node_modules/keytar4/build/Release/keytar.node
insinto /opt/teams/resources/app.asar.unpacked/node_modules/slimcore/bin
doins usr/share/teams/resources/app.asar.unpacked/node_modules/slimcore/bin/*.node
# insinto /opt/teams/resources/app.asar.unpacked/node_modules/v8-profiler-next/build/Release
# doins usr/share/teams/resources/app.asar.unpacked/node_modules/v8-profiler-next/build/Release/profiler.node
insinto /opt/teams/resources
doins usr/share/teams/resources/*.asar
insinto /opt/teams/resources/locales
doins usr/share/teams/resources/locales/*.json
insinto /opt/teams/resources/assets
doins -r usr/share/teams/resources/assets/*
insinto /opt/teams
doins usr/share/teams/*.pak
doins usr/share/teams/*.bin
doins usr/share/teams/*.dat
exeinto /opt/teams
doexe usr/share/teams/*.so
doexe usr/share/teams/teams
exeinto /opt/teams/swiftshader
doexe usr/share/teams/swiftshader/*.so
into /opt
dobin usr/bin/teams
dodoc usr/share/teams/*.html
#dodoc -r usr/share/doc/teams/.
# symlink required for the "Help->3rd Party Notes" menu entry (otherwise frozen skype -> xdg-open)
#dosym ${P} usr/share/doc/teams
# compat symlink for teams bin autocreate autostart desktop file
dosym ../../opt/bin/teams usr/bin/teams
doicon usr/share/pixmaps/teams.png
#local res
# no 1024 at the moment
#for res in 16 32 256 512; do
# newicon -s ${res} usr/share/icons/hicolor/${res}x${res}/apps/teams.png teams.png
#done
domenu usr/share/applications/teams.desktop
if use pax_kernel; then
pax-mark -Cm "${ED%/}"/opt/teams/teams
pax-mark -Cm "${ED%/}"/opt/teams/resources/app.asar.unpacked/node_modules/slimcore/bin/slimcore.node
eqawarn "You have set USE=pax_kernel meaning that you intend to run"
eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify"
eqawarn "the ${PN} binary itself and this *may* lead to breakage! If"
eqawarn "you suspect that ${PN} is being broken by this modification,"
eqawarn "please open a bug."
fi
}
pkg_postinst() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
}
pkg_postrm() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
}

View File

@@ -0,0 +1,106 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
CHROMIUM_LANGS="am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he
hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr
sv sw ta te th tr uk vi zh-CN zh-TW"
inherit chromium-2 desktop unpacker xdg
DESCRIPTION="Microsoft Teams, an Office 365 multimedia collaboration client, pre-release"
HOMEPAGE="https://products.office.com/en-us/microsoft-teams/group-chat-software/"
SRC_URI="https://packages.microsoft.com/repos/ms-teams/pool/main/t/${PN}/${PN}_${PV}_amd64.deb"
LICENSE="ms-teams-pre"
SLOT="0"
KEYWORDS="-* ~amd64"
RESTRICT="bindist mirror splitdebug test"
IUSE="swiftshader system-ffmpeg"
QA_PREBUILT="*"
# libasound2 (>= 1.0.16), libatk-bridge2.0-0 (>= 2.5.3), libatk1.0-0 (>= 2.2.0), libatspi2.0-0 (>= 2.9.90), libc6 (>= 2.17), libcairo2 (>= 1.10.0)
# libcups2 (>= 1.7.0), libdrm2 (>= 2.4.38), libexpat1 (>= 2.0.1), libgbm1 (>= 17.1.0~rc2), libgcc1 (>= 1:3.0), libgdk-pixbuf2.0-0 (>= 2.22.0),
# libglib2.0-0 (>= 2.39.4), libgtk-3-0 (>= 3.19.12), libnspr4 (>= 2:4.9-2~), libnss3 (>= 2:3.22), libpango-1.0-0 (>= 1.14.0), libpangocairo-1.0-0 (>= 1.14.0),
# libx11-6 (>= 2:1.4.99.1), libx11-xcb1, libxcb-dri3-0, libxcb1 (>= 1.6), libxcomposite1 (>= 1:0.3-1), libxcursor1 (>> 1.1.2), libxdamage1 (>= 1:1.1),
# libxext6, libxfixes3, libxi6 (>= 2:1.2.99.4), libxrandr2, libxrender1, libxtst6, apt-transport-https, libfontconfig1 (>= 2.11.0), libdbus-1-3 (>= 1.6.18),
# libstdc++6 (>= 4.8.1)
RDEPEND="
app-accessibility/at-spi2-core:2
app-accessibility/at-spi2-atk:2
app-crypt/libsecret
dev-libs/atk
dev-libs/expat
dev-libs/glib
dev-libs/nspr
dev-libs/nss
media-libs/alsa-lib
media-libs/fontconfig
media-libs/mesa[gbm(+)]
net-print/cups
sys-apps/dbus
sys-apps/util-linux
sys-libs/glibc
x11-libs/cairo
x11-libs/libdrm
x11-libs/gdk-pixbuf
x11-libs/gtk+:3
x11-libs/libX11
x11-libs/libXScrnSaver
x11-libs/libXcomposite
x11-libs/libXcursor
x11-libs/libXdamage
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libXi
x11-libs/libXrandr
x11-libs/libXrender
x11-libs/libXtst
x11-libs/libxcb
x11-libs/libxkbfile
x11-libs/pango
system-ffmpeg? ( <media-video/ffmpeg-4.3[chromium] )
"
S="${WORKDIR}"
src_prepare() {
default
sed -i '/OnlyShowIn=/d' usr/share/applications/${PN}.desktop || die
sed -e "s@^TEAMS_PATH=.*@TEAMS_PATH=${EPREFIX}/opt/${PN}/${PN}@" \
-i usr/bin/${PN} || die
}
src_install() {
rm _gpgorigin || die
rm -r "usr/share/${PN}/resources/assets/"{.gitignore,macos,tlb,windows,x86,x64,arm64} || die
rm -r "usr/share/${PN}/resources/tmp" || die
rm "usr/share/${PN}/chrome-sandbox" || die
insinto /opt
doins -r usr/share/${PN}
dobin usr/bin/${PN}
domenu usr/share/applications/${PN}.desktop
doicon usr/share/pixmaps/${PN}.png
pushd "${ED}/opt/${PN}/locales" > /dev/null || die
chromium_remove_language_paks
popd > /dev/null || die
if use system-ffmpeg; then
rm "${ED}/opt/${PN}/libffmpeg.so" || die
dosym "../../usr/$(get_libdir)/chromium/libffmpeg.so" "opt/${PN}/libffmpeg.so" || die
elog "Using system ffmpeg. This is experimental and may lead to crashes."
fi
if ! use swiftshader; then
rm -r "${ED}/opt/${PN}/swiftshader" || die
elog "Running without SwiftShader OpenGL implementation. If Teams doesn't start "
elog "or you experience graphic issues, then try with USE=swiftshader enabled."
fi
fperms +x /usr/bin/${PN}
fperms +x /opt/${PN}/${PN}
}