mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
mail-client/proton-mail-bin: add 1.12.1 with minor improvements
1. versioned distfile -- more versions can coexist 2. add virtual/udev to RDEPENDs -- it links to libudev.so.1 3. remove libdrm RDEPEND -- it does not link to it directly Signed-off-by: Filip Kobierski <fkobi@pm.me>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST ProtonMail-desktop-beta.rpm 89856549 BLAKE2B 653dc02199cb09e2023fafe8be38afd3291e34e69869bd4717bbb01f39d25086da8d8995b66a3479a2b7d6b09ad1b0f1e9fc73ee52a3a3ef7d4d2989e745bad2 SHA512 8e02ad7e2a02d0bd49a112e93b404154ff16bddcfbac27979d9dfbcf0660a28481f2656ff93d031215dc2a5cdd6fb060abfad8f13cc00a41bb3db4d22ccf7fc8
|
||||
DIST proton-mail-bin-1.12.1.rpm 91598337 BLAKE2B 183960c8c12a0e49cc5e80e5c89cbd7474666fe55c46753f187ad2caf64fbc7d9e381f09bb1e9490e5a168def15332e3cd07992378a002007123e845457c9a60 SHA512 1e7d572859e3452e208f6ae3f6e5eac7d6bbb4cb014b36f6c7a7b0b0a7bd916d7c8562775d806536729f18762bf16600a3dc050b46ca1c0733addf6ac55a311c
|
||||
|
||||
76
mail-client/proton-mail-bin/proton-mail-bin-1.12.1.ebuild
Normal file
76
mail-client/proton-mail-bin/proton-mail-bin-1.12.1.ebuild
Normal file
@@ -0,0 +1,76 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit desktop rpm xdg-utils
|
||||
|
||||
MY_PN="${PN%-bin}"
|
||||
|
||||
DESCRIPTION="Beta Client for Proton Mail"
|
||||
HOMEPAGE="https://proton.me/mail"
|
||||
SRC_URI="https://proton.me/download/mail/linux/${PV}/ProtonMail-desktop-beta.rpm -> ${P}.rpm"
|
||||
S="${WORKDIR}"
|
||||
|
||||
# https://github.com/NixOS/nixpkgs/pull/296127#discussion_r1528184212
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64"
|
||||
|
||||
RDEPEND="
|
||||
app-accessibility/at-spi2-core:2
|
||||
dev-libs/expat
|
||||
dev-libs/glib:2
|
||||
dev-libs/nspr
|
||||
dev-libs/nss
|
||||
media-libs/alsa-lib
|
||||
media-libs/mesa
|
||||
net-print/cups
|
||||
sys-apps/dbus
|
||||
x11-libs/cairo
|
||||
x11-libs/gtk+:3
|
||||
x11-libs/libX11
|
||||
x11-libs/libXcomposite
|
||||
x11-libs/libXdamage
|
||||
x11-libs/libXext
|
||||
x11-libs/libXfixes
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libxcb
|
||||
x11-libs/libxkbcommon
|
||||
x11-libs/pango
|
||||
virtual/udev
|
||||
"
|
||||
|
||||
QA_PREBUILT="opt/proton-mail/*"
|
||||
|
||||
src_install() {
|
||||
into /opt
|
||||
cp -r "${S}"/usr/lib/* "${D}"/opt/proton-mail || die "Failed to copy files to destination directory"
|
||||
|
||||
dosym "../../opt/proton-mail/Proton Mail Beta" "/usr/bin/proton-mail"
|
||||
|
||||
insinto /usr/share
|
||||
doins -r "${S}/usr/share/pixmaps"
|
||||
doins -r "${S}/usr/share/applications"
|
||||
|
||||
local desktopentryargs=(
|
||||
--eapi9 "${MY_PN}"
|
||||
--args "--ozone-platform-hint=auto %U"
|
||||
--name "Proton Mail"
|
||||
--comment "Proton official desktop application for Proton Mail and Proton Calendar"
|
||||
--icon "${MY_PN}"
|
||||
--entry "GenericName=Proton Mail"
|
||||
--entry "StartupNotify=true"
|
||||
--entry "MimeType=x-scheme-handler/mailto;"
|
||||
--force
|
||||
)
|
||||
make_desktop_entry "${desktopentryargs[@]}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_desktop_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
}
|
||||
Reference in New Issue
Block a user