diff --git a/net-im/teams-for-linux/Manifest b/net-im/teams-for-linux/Manifest new file mode 100644 index 00000000..1e20c09b --- /dev/null +++ b/net-im/teams-for-linux/Manifest @@ -0,0 +1,5 @@ +AUX teams-for-linux.sh 652 BLAKE2B f8216f114e7deab1eb0d3d29c3ba43bcf5f81eff16bddd6ff782cbe3aea37ba43492cefdad1ca58f8acd9d1634551742795009a44a864c4dec0d1de46beb0c2a SHA512 dd969ddf8cfd95da6ef3da17a48010d98dd52cc4d12053531b61a74d5180049bcbf6031fd03f1f5f056423ac86088da0c342d5c51f22ab04006a2290e995916b +AUX teams-for-linux.svg 3664 BLAKE2B cf84894e09bae4849852ba10a189d2848d31a6434e9bed12efbd067abd32b53b84e34e0574054c9ced89b927a669a4385b460df49c939f8bf33a096f2b57e06a SHA512 97931f1de4451b20bdb9e490504058eac342e44a082566838b8bfbd44d88b7b8744ec3b77f489e04bb3056f7889aa6522a3bcfb6e4d3f0c84a4650b8033f5d09 +DIST teams-for-linux-1.11.3.tar.gz 291153732 BLAKE2B 7c4cfadbc1010fe03a3a70e12dc53e3384659afea8d35f04f4fe36a424ec16ca4d3bcdc3c167300e749fc517cee2bc1f1868aa6da8db71bd3e4b5fe84f666eed SHA512 4102a1020f783ca03bf33138bd156056fbafd42ffde2c507ceefe0cf08ae55c27e5db08c50cac652a4b415c7bb3443e72d622ee44a31aa110bc0da352a7606d0 +EBUILD teams-for-linux-1.11.3.ebuild 2151 BLAKE2B aa568ba23de0159df1b48e68b2de4ee7a780ad7003fbad96d5e7b01a37677d098d127dd6b74c3fbd9d2877a7bb050faf70e23c4b0bed3182e75b3dc70ec7fb93 SHA512 8af6bcd83c7815da39c9ca2658693e137b2ae458ae79c697b300608741d3254090d5f876d37e991b689668902c6ae270ba4860177303e4fb5520fafcf834d758 +MISC metadata.xml 348 BLAKE2B 71bee5df10d787cb55db644f7ef518b1e40070ec86111f79409af4ee7a1e1961950a9c33d7fd5b7ca082eacdc98b643e458c9f58d46a4d5d70cbf86cff861ac5 SHA512 933a6108d8fc8e3990e012a11e2c109f609895c5483cf1ec675cd106b5837dbcd55b12c5e67b892b62fe46b91f26cecb712f66966785fa5c949f65abc0051193 diff --git a/net-im/teams-for-linux/files/teams-for-linux.sh b/net-im/teams-for-linux/files/teams-for-linux.sh new file mode 100644 index 00000000..43be2679 --- /dev/null +++ b/net-im/teams-for-linux/files/teams-for-linux.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# Allow the user to override command-line flags, bug #357629. +# This is based on Debian's chromium-browser package, and is intended +# to be consistent with Debian. +for f in /etc/chromium/*; do + [[ -f ${f} ]] && source "${f}" +done + +# Prefer user defined CHROMIUM_USER_FLAGS (from env) over system +# default CHROMIUM_FLAGS (from /etc/chromium/default). +CHROMIUM_FLAGS=${CHROMIUM_USER_FLAGS:-"$CHROMIUM_FLAGS"} + +# Let the wrapped binary know that it has been run through the wrapper. +export CHROME_WRAPPER="$(readlink -f "$0")" + +HERE="$(dirname "$CHROME_WRAPPER")" + +exec -a "teams-for-linux" "$HERE/teams-for-linux" ${CHROMIUM_FLAGS} "$@" diff --git a/net-im/teams-for-linux/files/teams-for-linux.svg b/net-im/teams-for-linux/files/teams-for-linux.svg new file mode 100644 index 00000000..c0f920ac --- /dev/null +++ b/net-im/teams-for-linux/files/teams-for-linux.svg @@ -0,0 +1 @@ + diff --git a/net-im/teams-for-linux/metadata.xml b/net-im/teams-for-linux/metadata.xml new file mode 100644 index 00000000..594d98f2 --- /dev/null +++ b/net-im/teams-for-linux/metadata.xml @@ -0,0 +1,11 @@ + + + + + casta@xwing.info + Guillaume Castagnino + + + IsmaelMartinez/teams-for-linux + + diff --git a/net-im/teams-for-linux/teams-for-linux-1.11.3.ebuild b/net-im/teams-for-linux/teams-for-linux-1.11.3.ebuild new file mode 100644 index 00000000..419e187c --- /dev/null +++ b/net-im/teams-for-linux/teams-for-linux-1.11.3.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop xdg multilib-build + +DESCRIPTION="Unofficial Microsoft Teams client for Linux. Binary precompiled version." +HOMEPAGE="https://github.com/IsmaelMartinez/teams-for-linux" +SRC_URI="https://github.com/IsmaelMartinez/${PN}/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="-* ~amd64" +IUSE="system-ffmpeg system-mesa" + +QA_PREBUILT="*" + +DEPEND=" + app-accessibility/at-spi2-core:2[${MULTILIB_USEDEP}] + dev-libs/nspr[${MULTILIB_USEDEP}] + dev-libs/nss[${MULTILIB_USEDEP}] + media-libs/alsa-lib[${MULTILIB_USEDEP}] + media-libs/freetype:2[${MULTILIB_USEDEP}] + media-gfx/graphite2[${MULTILIB_USEDEP}] + net-print/cups[${MULTILIB_USEDEP}] + x11-libs/gtk+:3[${MULTILIB_USEDEP}] + x11-libs/libX11[${MULTILIB_USEDEP}] + x11-libs/pango[${MULTILIB_USEDEP}] + system-ffmpeg? ( >=media-video/ffmpeg-6[chromium] ) + system-mesa? ( media-libs/mesa[vulkan] ) +" + +src_install() { + dodir /opt/${PN} + cp -a . "${ED}/opt/${PN}" || 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 system-mesa; then + rm "${ED}/opt/${PN}/libEGL.so" || die + rm "${ED}/opt/${PN}/libGLESv2.so" || die + rm "${ED}/opt/${PN}/libvulkan.so.1" || die + rm "${ED}/opt/${PN}/libvk_swiftshader.so" || die + rm "${ED}/opt/${PN}/vk_swiftshader_icd.json" || die + elog "Using system mesa. This is experimental and may lead to crashes." + fi + + # install wrapper reading /etc/chromium/* for CHROME_FLAGS + exeinto /opt/${PN} + doexe "${FILESDIR}/${PN}.sh" + + # remove chrome-sandbox binary, users should use kernel namespaces + # https://bugs.gentoo.org/692692#c18 + rm "${ED}/opt/${PN}/chrome-sandbox" || die + + dosym ../../opt/${PN}/${PN}.sh /usr/bin/${PN} + + newicon -s scalable "${FILESDIR}/${PN}.svg" ${PN}.svg + make_desktop_entry "${EPREFIX}"/opt/${PN}/${PN}.sh "Teams for Linux" \ + ${PN} "Network;Chat;InstantMessaging;" \ + "MimeType=x-scheme-handler/msteams;" +}