net-im/max: new package, add 25.8.0.490, 25.12.0.510

This commit is contained in:
2026-02-02 19:38:58 +03:00
parent 2618da3c89
commit 429321be28
3 changed files with 116 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit xdg desktop unpacker
DESCRIPTION="A fast and lightweight app for communication and everyday tasks"
HOMEPAGE="https://max.ru"
SRC_URI="https://download.max.ru/electron/MAX.deb -> ${P}.deb"
S="${WORKDIR}"
LICENSE="MAX-EULA"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
x11-libs/gtk+:3
x11-libs/libnotify
dev-libs/nss
x11-libs/libXtst
app-accessibility/at-spi2-core
app-crypt/libsecret
"
RDEPEND="${DEPEND}"
QA_PRESTRIPPED="
/opt/MAX/libEGL.so
/opt/MAX/chrome-sandbox
/opt/MAX/chrome_crashpad_handler
/opt/MAX/libffmpeg.so
/opt/MAX/libvulkan.so.1
/opt/MAX/libGLESv2.so
/opt/MAX/libvk_swiftshader.so
/opt/MAX/MAX
"
src_install() {
insinto /
doins -r .
exeinto /opt/MAX
doexe opt/MAX/MAX
dosym -r /opt/MAX/MAX /usr/bin/MAX
domenu usr/share/applications/MAX.desktop
}
pkg_postinst() {
xdg_desktop_database_update
xdg_icon_cache_update
}
pkg_postrm() {
xdg_desktop_database_update
xdg_icon_cache_update
}