Files
gentoo-zh/mail-client/proton-mail-bin/proton-mail-bin-1.16.1.ebuild
T
Zakk 00174974a7 mail-client/proton-mail-bin: new package, add 1.16.1
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Zakk <zakk@gentoozh.org>
2026-12-05 06:17:56 +11:00

81 lines
1.9 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 official desktop application for Proton Mail and Proton Calendar"
HOMEPAGE="
https://proton.me/mail
https://github.com/ProtonMail/WebClients
"
SRC_URI="https://proton.me/download/mail/linux/${PV}/ProtonMail-desktop-beta.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-mail/*"
pkg_setup() {
[[ -e /usr/src/linux ]] || return
chromium_suid_sandbox_check_kernel_config
}
src_prepare() {
default
pushd usr/lib/proton-mail/locales > /dev/null || die
chromium_remove_language_paks
popd > /dev/null || die
}
src_install() {
dodir /opt/proton-mail
cp -ar usr/lib/proton-mail/. "${ED}"/opt/proton-mail/ || die
# Upstream ships world-writable files.
fperms -R o-w /opt/proton-mail
fperms 4711 /opt/proton-mail/chrome-sandbox
dosym "../../opt/proton-mail/Proton Mail Beta" /usr/bin/proton-mail
domenu usr/share/applications/proton-mail.desktop
# Upstream ships an SVG under the name proton-mail.png.
newicon -s scalable usr/share/pixmaps/proton-mail.png proton-mail.svg
}