This commit is contained in:
Mario Fetka
2020-01-21 16:52:53 +01:00
parent e627aad8ba
commit 50b6c99c92
8 changed files with 208 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
DIST skypeforlinux_8.51.76.87-1.x86_64.rpm 106358941 BLAKE2B 4790231bef6b066ca89f8c2a35eb78dbebcc26f1ca025567cd98b0dea951c1e414f941aebd263e70f0a5db710adcfd62a14b7ca8a55cde6e3615a33e17cd7fef SHA512 56816d847c718a2ac8474f24d9f8e9dca94386b8431e186a20dfd3a7b4f6e297b549e6846ed61f25a53aa811f7a37530afaf532a3650fafbb4480d8f61fc921c
EBUILD skypeforlinux-8.51.76.87.ebuild 6063 BLAKE2B 91f35a60705a53d5fc5ef39e611bec2ce68da0cb201f527f7ea32242928cbdfcf600e1d9f37c4fee8662d8acfbf4c90df97df93a3e51c65d43b01dc2c217184a SHA512 719b76249460abd2a8c155b89fd534fc929cca0321d1c3a7be689eb0873e0371ece050b1a64c213133a45846ecd19f746d2f0a78826107d9968966a9f619b374
DIST skypeforlinux_8.54.76.64-1.x86_64.rpm 106675881 BLAKE2B bb001a5b24dd3a3eb1b1531e5ce8f897fc8c559b662252537cf1975b3c9578fc5b0c704a6da469f4ba69bd11c15a23afca8850fc25545cc2c02f3dcd8c94a6a1 SHA512 1d1f074deb3fefb89f7e08f65109b410e75402070b18c36a63e4f8c5dd1d6160a2071e995c41bc3efd9c88699a3556193657eb1573c8a8dc764d2cc122da876b
EBUILD skypeforlinux-8.54.76.64.ebuild 6063 BLAKE2B 91f35a60705a53d5fc5ef39e611bec2ce68da0cb201f527f7ea32242928cbdfcf600e1d9f37c4fee8662d8acfbf4c90df97df93a3e51c65d43b01dc2c217184a SHA512 719b76249460abd2a8c155b89fd534fc929cca0321d1c3a7be689eb0873e0371ece050b1a64c213133a45846ecd19f746d2f0a78826107d9968966a9f619b374
MISC ChangeLog 717 BLAKE2B 62e7b63422d35e011a1d799f960e65026d1bca64361d1520e0123c928386be2926e7e1c5ea20e2fcce0f6c930cbcd1d23755ad0adc660256ba01bc4cfe5f483a SHA512 aeef06e239237b851ee67ace8c1fb8b822f5e39a8b90cd3335fa696336b1c68913780ee0f5642001116fa65a2cc54cd125840fb376f0721bf51094d6301f6403
MISC metadata.xml 795 BLAKE2B da666b2ac257898116bb8fcf60bf27947b2261f8f718e6bd9cdf3e2c35e38954659be9499675a425cea0f2a9309fb2ada85b54684651f25463140b7f4e89fde9 SHA512 7c97ba77885e397a00e855ffca0dd1f2aa4e1b9c5780650cac09a729ecf4cce07599179c67b86ace1d7e1cd47eafe3a397e9487b42de56e96a86ffb15947abf9

4
net-im/teams/Manifest Normal file
View File

@@ -0,0 +1,4 @@
DIST teams-1.3.00.958-1.x86_64.rpm 89256463 BLAKE2B 394c15e5f752d404b2bee39eac07fe8014d20c28710aada8239191f1d45f12cffc88d9c22a619a8856090d463af559bf7d4dcefd52f176b3288a20093a315588 SHA512 7be7e606d07cee5fe95f594f721e90e63f89e1b26441c8ce1ca3c2da9b6dafc75e4ee47419dde72925f7c1611dbb11c79f70d3b738d9bbaba4a91fd87f06d250
DIST teams_1.2.00.32451_amd64.deb 64874490 BLAKE2B 8e2f4ee12bb782028e4a90e3d2f51a4945f741d1fe77c90ffcee19c397cc33f9f221a220489a7245eabb01210390a1bd0a15ac1d53d78f915390bbc97fc23d04 SHA512 2e921c0ebd2306b6f61f5ecd448206922394a19339e8c14023aa1778444a649bf4730c71362263e53bb833caed05907203d782221429e853d76695695835e407
EBUILD teams-1.2.00.32451.ebuild 1413 BLAKE2B a71734ea39d6bad94dc25b1bfc52e6624dfbd7ec64b92fde823649737fc8d09009d026fd63c743fb199b030d832e045c81c4a9b92231e4a6c70e6c4b2a90af15 SHA512 a4c79b97a253022d339d9fef51c21a2f9cda778ca10e14f85820065f93fcf6031bffb7de4b8a1ed0d7fd26c5df6b5548998c72bb43c688e5f27e449b62359f0f
EBUILD teams-1.3.00.958.ebuild 7010 BLAKE2B 9e95bd3ddd9a11af6dcee4e0ce4dad297dd61cfa06f04ba491851549280bf2ff983c66c3a56959c1e86d05c593eb867615d45532cc2648cdfe7ad8dcf866e936 SHA512 084188dcab85cb677f1951c038cec7cb9187412503908e37137b1796ee0599942230f3f566345960a27a68db1d8a6d91b2fe4c29b66cdc00c8aa8c06bbecd6e4

10
net-im/teams/metadata.xml Normal file
View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>mario.fetka@gmail.com</email>
</maintainer>
<longdescription lang="en">
Microsoft Teams for Linux is your chat-centered workspace in Office 365
</longdescription>
</pkgmetadata>

View File

@@ -0,0 +1,175 @@
# 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/keytar3/build/Release
doins usr/share/teams/resources/app.asar.unpacked/node_modules/keytar3/build/Release/keytar.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-torycl/build/Release
doins usr/share/teams/resources/app.asar.unpacked/node_modules/v8-profiler-torycl/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
}