diff --git a/net-im/teams-for-linux/Manifest b/net-im/teams-for-linux/Manifest index ec2d575771..3bcfa29667 100644 --- a/net-im/teams-for-linux/Manifest +++ b/net-im/teams-for-linux/Manifest @@ -1,3 +1,6 @@ +DIST teams-for-linux-1.10.2.aarch64.rpm 83482653 BLAKE2B 4b2efc3a12ac44f6f220cdeeef31881b2d0242174770c57a60f959b7a42100ab29ce7674440d30251d009883693cf9d32f1efd5c398817a26eae13e881f129fa SHA512 f94475065cc9b2a53f69a98c1ab75176f95bada309a8f05053e8d0ce44d5497e4ce430b03bb65df72a4486cdcc9648d3fe72d98bcfda94384a6214c05c0b6f81 +DIST teams-for-linux-1.10.2.armv7l.rpm 82008197 BLAKE2B 2966485b4eae952654edb56571f8d911c7271eaf3b68b9c8e37d644bbd5c362a84101844fdcaf53be283e51f5a3cac3d4c2a93cda1b48e32d528ab0f7e215f30 SHA512 801309840508f0ff5f2553b091a5274597f54aa3bba9a58aa3a083c2325ea37b20515f365a94da16f3101079f5b971d928e086a0eaa9c35ec1a371a0dfb2b787 +DIST teams-for-linux-1.10.2.x86_64.rpm 88171849 BLAKE2B 7f0561d7340ad8f4d5b287f8acc599196c72f013731768f471a218c0f327ea83cca324326a4f7e8cdc8ed56b32b744c1d5c7c94f93ce50991f676eb35bab4fae SHA512 9fdf181c2468237fb04ab1eec0da6e40d370e893a3ebd1963e8bd2ce702ca0a898b88df4377fbc05aabffd5e6787d3cbd5c355aa2a2cfaa84a7c16d09bdf799f DIST teams-for-linux-1.4.12.aarch64.rpm 69389757 BLAKE2B cd10f3bc96001471461f541790cc6b46853ffedba5932dd1ad9db556e7c5316866cf12623adca935591e6d5e01a159aabd60be86bbe2036932baf6815df84dea SHA512 e92cc9e9025d62169afbe7505e8806f1bb26c48e53b6a2d9a243e4d4093dfad5902791b5b9727fbd730f13f19039db619daf43011b6b408311b88718baf0a051 DIST teams-for-linux-1.4.12.armv7l.rpm 68009209 BLAKE2B 18529bd3b034ce7f0910dc5be2843c334725333c930af9a2081e243078f41ef23b4e749fb794372b7b65c675abd1875c0b230a187503f33d112b6c4bd7e4b60f SHA512 231a5f87c9287ac08bfe908a8d542ce9bc4250d18894207f76ddfc6a0cdb01523f02817ce028c93e52879878fe60c16687330c8c703bbe6c832eefea2d829c97 DIST teams-for-linux-1.4.12.x86_64.rpm 74359237 BLAKE2B 16d42d54c3f160d02c97dd5c52e6bb08193a890cc73e33cb976cc7265c356d10bb75646a63ab97d3812ea9f534f45c4e96ae334c4dcbae9a886b000c8fd83ad8 SHA512 144fe6c164bb137e1c1fe35cff2c61bfa00b2b29a73739acc861b65ca5a4c67cb001bc1a38b66a2ec810b0283eed1f16282531754fb932e8b475ac6628997eed diff --git a/net-im/teams-for-linux/teams-for-linux-1.10.2.ebuild b/net-im/teams-for-linux/teams-for-linux-1.10.2.ebuild new file mode 100644 index 0000000000..2b1ba63a6b --- /dev/null +++ b/net-im/teams-for-linux/teams-for-linux-1.10.2.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/teams-for-linux/releases/download/v${PV}/${P}.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 +}