commit: d62e56e05164932e41d724e218d371d22c7ad679
Author: Vitaly Zdanevich ya ru>
AuthorDate: Thu Aug 10 16:54:15 2023 +
Commit: Vitaly Zdanevich ya ru>
CommitDate: Thu Aug 10 16:54:15 2023 +
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 00..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 00..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 00..34be9847d2
--- /dev/null
+++ b/net-im/teams-for-linux/files/teams-for-linux.svg
@@ -0,0 +1,22 @@
+
+http://www.w3.org/2000/svg; viewBox="0 0 2228.833 2073.333">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ 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 00..61ff0c4087
--- /dev/null
+++ b/net-im/teams-for-linux/metadata.xml
@@ -0,0 +1,10 @@
+
+
+
+ ca...@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 00..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;"
+}