diff --git a/net-im/teams-for-linux/Manifest b/net-im/teams-for-linux/Manifest index 56f034308f..1a44b8efef 100644 --- a/net-im/teams-for-linux/Manifest +++ b/net-im/teams-for-linux/Manifest @@ -1,3 +1,6 @@ DIST teams-for-linux-1.11.5.aarch64.rpm 84955693 BLAKE2B 49951f3f903347e127ebfe77f6766376054180b8339b8d31b777fdf8c6991702e18b482919bbf5911c899e23661eb551381a1550c7aebdd12dc2215aa48f3a2f SHA512 ea5ab8c5199c8c364ad1ef6ff052fef58e8d09e958b319de0a80e91df43a2dde53c4f0e0242e59500934cbc20143d49e1de5f24116dd30abb80ed018b75bc192 DIST teams-for-linux-1.11.5.armv7l.rpm 84364393 BLAKE2B 1f002b4b4aa737f96762ed3c6648e9854de69c69d9140ea0b1d4155e249ccdaf15541a3b1aedc494eab402a259c0feec524f0692506a917b396b27e44644e91a SHA512 0638f6bfe61de8fbda74273eaf2f3b28935dbc83c3792b82d5ae95ce99f8f36d4c2ecf15b41b866a6b2c6983bf4e2baa87c8dfb1d76097e0066b16e4294d0325 DIST teams-for-linux-1.11.5.x86_64.rpm 89611789 BLAKE2B b6331220281aa319d7cc7a25f8cd307bf13fb21ffbc425ded6287df13978bea9ebd61928c98d3bcfa5c982a6e4adc05c5234c3225f2edb23b10cd120cf92f0a5 SHA512 7117c58ae8cbf0f634628742ccea5da99fc85ff31fc5f6ec8a3a79dc8264787b87ccb84ba4bff936dbb0fd024098798b098d4d4f7f2a21f96381cb8d5993af00 +DIST teams-for-linux-1.12.3.aarch64.rpm 84640397 BLAKE2B b37ce75d2b6fbe4bafa0bb589fa89a99b4af2569b9c69bb1240e8315976db326e34a070826b5f3acd77625d1585c6ff5a8dd88c51d1ba9c00441a5767d2d6429 SHA512 0a1e9ebef7b5a3b44ddd938cabccff65bad885b2e640f982f33c693496fcb33a084a8785e21afce4bf57d22405acc7c47124c6ef747d50596f70d1ece4493c8b +DIST teams-for-linux-1.12.3.armv7l.rpm 84036961 BLAKE2B 81124ee7d6fd87a3b30e2ebdc14f8e7d1b70cd4de67cfae48a59aa421621d3b58697f87231099c963c700d9c28cdd93e3b8ef645cd2d8e1d35331bae26c191e0 SHA512 ffb359b0e0adcfd5160bd53be87e700dbc6fe9b18e44828924d6c10df982ac28d3f45468c876f1502bfa8441049a5a87ea1137e0cf83ff7e93f964639a27c539 +DIST teams-for-linux-1.12.3.x86_64.rpm 89283245 BLAKE2B 71d5f40e65b8b90e40233d1d61bd28483ab8aba514daa3c8d35780d1216a180c9f61d69c007c09bba2e54810874b4c74002f2ed0f6130075b0db6aa55dc87799 SHA512 8c133856e1ea86555365ac6070fcf49504d718f7544916355e30d85ecabdbcf0b4fff65b05b399dcc2fead39ecb4b520eba7dec6798a8de72c2a6ef6956638fb diff --git a/net-im/teams-for-linux/teams-for-linux-1.12.3.ebuild b/net-im/teams-for-linux/teams-for-linux-1.12.3.ebuild new file mode 100644 index 0000000000..711eed7e7a --- /dev/null +++ b/net-im/teams-for-linux/teams-for-linux-1.12.3.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_LANGS=" + af am ar bg bn ca cs da de el en-GB en-US 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 ur vi zh-CN zh-TW +" + +inherit chromium-2 desktop rpm xdg + +DESCRIPTION="Unofficial Microsoft Teams client for Linux. Binary precompiled version." +HOMEPAGE="https://github.com/IsmaelMartinez/teams-for-linux" +SRC_URI=" + amd64? ( https://github.com/IsmaelMartinez/${PN}/releases/download/v${PV}/${PN}-${PV}.x86_64.rpm ) + arm? ( https://github.com/IsmaelMartinez/teams-for-linux/releases/download/v${PV}/${P}.armv7l.rpm ) + arm64? ( https://github.com/IsmaelMartinez/teams-for-linux/releases/download/v${PV}/${P}.aarch64.rpm ) +" +S="${WORKDIR}" + +# Electron bundles a bunch of things +LICENSE=" + MIT BSD BSD-2 BSD-4 AFL-2.1 Apache-2.0 Ms-PL GPL-2 LGPL-2.1 APSL-2 + unRAR OFL-1.1 CC-BY-SA-3.0 MPL-2.0 android public-domain all-rights-reserved +" +SLOT="0" +KEYWORDS="-* ~amd64 ~arm ~arm64" +RESTRICT="bindist mirror" + +RDEPEND=" + app-accessibility/at-spi2-core:2 + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/mesa + net-print/cups + sys-apps/dbus + x11-libs/cairo + x11-libs/gtk+:3 + x11-libs/libdrm + x11-libs/libX11 + x11-libs/libxcb + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libxkbcommon + x11-libs/libXrandr + x11-libs/pango +" + +QA_PREBUILT="opt/teams-for-linux/*" + +pkg_pretend() { + chromium_suid_sandbox_check_kernel_config +} + +src_prepare() { + default + # cleanup languages + pushd "opt/teams-for-linux/locales" || die + chromium_remove_language_paks + popd || die +} + +src_configure() { + chromium_suid_sandbox_check_kernel_config + default +} + +src_install() { + for size in {16,24,32,48,64,96,128,256,512,1024}; do + doicon -s ${size} "usr/share/icons/hicolor/${size}x${size}/apps/teams-for-linux.png" + done + + domenu usr/share/applications/teams-for-linux.desktop + + local DESTDIR="/opt/teams-for-linux" + + pushd "opt/teams-for-linux" || die + + exeinto "${DESTDIR}" + doexe chrome-sandbox chrome_crashpad_handler teams-for-linux *.so* + + insinto "${DESTDIR}" + doins *.pak *.bin *.json *.dat + insopts -m0755 + doins -r locales resources + + # Chrome-sandbox requires the setuid bit to be specifically set. + # see https://github.com/electron/electron/issues/17972 + fperms 4755 "${DESTDIR}"/chrome-sandbox + + dosym "${DESTDIR}"/teams-for-linux /opt/bin/teams-for-linux + popd || die +}