85 lines
2.1 KiB
Bash
85 lines
2.1 KiB
Bash
# Copyright 2026 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 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 unpacker xdg
|
|
|
|
DESCRIPTION="Proton's official desktop application for Proton Meet"
|
|
HOMEPAGE="
|
|
https://proton.me/meet
|
|
https://github.com/ProtonMail/WebClients
|
|
"
|
|
SRC_URI="https://proton.me/download/meet/linux/${PV}/ProtonMeet-desktop.deb -> ${P}.deb"
|
|
S="${WORKDIR}"
|
|
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="-* ~amd64"
|
|
RESTRICT="strip"
|
|
|
|
RDEPEND="
|
|
app-accessibility/at-spi2-core:2
|
|
app-crypt/libsecret
|
|
dev-libs/expat
|
|
dev-libs/glib:2
|
|
dev-libs/nspr
|
|
dev-libs/nss
|
|
media-libs/alsa-lib
|
|
media-libs/libglvnd
|
|
media-libs/mesa
|
|
net-print/cups
|
|
sys-apps/dbus
|
|
>=sys-libs/glibc-2.25
|
|
virtual/libudev
|
|
x11-libs/cairo
|
|
x11-libs/gtk+:3
|
|
x11-libs/libnotify
|
|
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
|
|
x11-misc/xdg-utils
|
|
"
|
|
|
|
QA_PREBUILT="opt/proton-meet/*"
|
|
|
|
pkg_setup() {
|
|
[[ -e /usr/src/linux ]] || return
|
|
chromium_suid_sandbox_check_kernel_config
|
|
}
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
pushd usr/lib/proton-meet/locales > /dev/null || die
|
|
chromium_remove_language_paks
|
|
popd > /dev/null || die
|
|
|
|
# The window class is the launcher name, not the product name.
|
|
sed -i -e 's/^StartupWMClass=.*/StartupWMClass=proton-meet/' \
|
|
usr/share/applications/proton-meet.desktop || die
|
|
}
|
|
|
|
src_install() {
|
|
dodir /opt/proton-meet
|
|
cp -ar usr/lib/proton-meet/. "${ED}"/opt/proton-meet/ || die
|
|
# Upstream ships world-writable files.
|
|
fperms -R o-w /opt/proton-meet
|
|
fperms 4711 /opt/proton-meet/chrome-sandbox
|
|
dosym "../../opt/proton-meet/Proton Meet Beta" /usr/bin/proton-meet
|
|
|
|
domenu usr/share/applications/proton-meet.desktop
|
|
doicon -s 256 usr/share/icons/hicolor/256x256/apps/proton-meet.png
|
|
doicon -s scalable usr/share/icons/hicolor/scalable/apps/proton-meet.svg
|
|
}
|