From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B463815800A for ; Thu, 10 Aug 2023 16:54:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 038BA2BC013; Thu, 10 Aug 2023 16:54:29 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E08E62BC013 for ; Thu, 10 Aug 2023 16:54:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 20FED335D50 for ; Thu, 10 Aug 2023 16:54:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5B354F4A for ; Thu, 10 Aug 2023 16:54:26 +0000 (UTC) From: "Vitaly Zdanevich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Vitaly Zdanevich" Message-ID: <1691686455.d62e56e05164932e41d724e218d371d22c7ad679.zdanevich.vitaly@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-im/teams-for-linux/files/, net-im/teams-for-linux/ X-VCS-Repository: repo/proj/guru X-VCS-Files: net-im/teams-for-linux/Manifest net-im/teams-for-linux/files/teams-for-linux.sh net-im/teams-for-linux/files/teams-for-linux.svg net-im/teams-for-linux/metadata.xml net-im/teams-for-linux/teams-for-linux-1.3.1.ebuild X-VCS-Directories: net-im/teams-for-linux/files/ net-im/teams-for-linux/ X-VCS-Committer: zdanevich.vitaly X-VCS-Committer-Name: Vitaly Zdanevich X-VCS-Revision: d62e56e05164932e41d724e218d371d22c7ad679 X-VCS-Branch: dev Date: Thu, 10 Aug 2023 16:54:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 185af79a-8165-4617-94f4-40eb6f1ca591 X-Archives-Hash: b66b72f6226466e9a71150153ea4506e commit: d62e56e05164932e41d724e218d371d22c7ad679 Author: Vitaly Zdanevich ya ru> AuthorDate: Thu Aug 10 16:54:15 2023 +0000 Commit: Vitaly Zdanevich ya ru> CommitDate: Thu Aug 10 16:54:15 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d62e56e0 net-im/teams-for-linux: new package, add 1.3.1 Copied from https://gentoo.xwing.info/net-im/teams-for-linux Signed-off-by: Vitaly Zdanevich ya.ru> net-im/teams-for-linux/Manifest | 1 + net-im/teams-for-linux/files/teams-for-linux.sh | 19 ++++++++++ net-im/teams-for-linux/files/teams-for-linux.svg | 22 +++++++++++ net-im/teams-for-linux/metadata.xml | 10 +++++ .../teams-for-linux/teams-for-linux-1.3.1.ebuild | 44 ++++++++++++++++++++++ 5 files changed, 96 insertions(+) diff --git a/net-im/teams-for-linux/Manifest b/net-im/teams-for-linux/Manifest new file mode 100644 index 0000000000..108ff2b261 --- /dev/null +++ b/net-im/teams-for-linux/Manifest @@ -0,0 +1 @@ +DIST teams-for-linux-1.3.1.tar.gz 93146221 BLAKE2B 085d34709ec5069aff1a25dbd6fc9973778b5373cba58e24e2c556f8d49485d9ca76f45a3436f2e299efa156b81780136730fca4d883fa5e6b3a52615c820f65 SHA512 9b64677cb17536e52b1c2cea11dd161953704f69e8bdc7c69c642fc61bf6815081f8efa0c0650cd0ccb210103d5ec28bf1ecab80b3334c29f30b713886d613c3 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 0000000000..43be26798f --- /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 0000000000..34be9847d2 --- /dev/null +++ b/net-im/teams-for-linux/files/teams-for-linux.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/net-im/teams-for-linux/metadata.xml b/net-im/teams-for-linux/metadata.xml new file mode 100644 index 0000000000..61ff0c4087 --- /dev/null +++ b/net-im/teams-for-linux/metadata.xml @@ -0,0 +1,10 @@ + + + + casta@xwing.info + Guillaume Castagnino + + + IsmaelMartinez/teams-for-linux + + diff --git a/net-im/teams-for-linux/teams-for-linux-1.3.1.ebuild b/net-im/teams-for-linux/teams-for-linux-1.3.1.ebuild new file mode 100644 index 0000000000..404249af98 --- /dev/null +++ b/net-im/teams-for-linux/teams-for-linux-1.3.1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop xdg multilib-build + +DESCRIPTION="Microsoft Teams client for Linux. Binary precompiled version." +HOMEPAGE="https://teams.microsoft.com/ 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="" +DEPEND=">=app-accessibility/at-spi2-core-2.46.0:2[${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}] +" + +src_install() { + dodir /opt/${PN} + cp -a . "${ED}"/opt/${PN} || die + + # 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;" +}