diff options
author | Akash Paul <paul007-dev@outlook.com> | 2022-10-02 16:42:17 +0530 |
---|---|---|
committer | Akash Paul <paul007-dev@outlook.com> | 2022-10-02 16:42:17 +0530 |
commit | 8da6fa32790a4c35727c4eabad5b43e01faadd12 (patch) | |
tree | a11624dede6347ac6c908b635e36dc97d5e99e13 /net-im | |
parent | net-im/nheko: fix mtxclient dependency (diff) | |
download | guru-8da6fa32790a4c35727c4eabad5b43e01faadd12.tar.gz guru-8da6fa32790a4c35727c4eabad5b43e01faadd12.tar.bz2 guru-8da6fa32790a4c35727c4eabad5b43e01faadd12.zip |
New pacakage net-im/session-desktop-bin
Signed-off-by: Akash Paul <paul007-dev@outlook.com>
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/session-desktop-bin/Manifest | 1 | ||||
-rw-r--r-- | net-im/session-desktop-bin/metadata.xml | 8 | ||||
-rw-r--r-- | net-im/session-desktop-bin/session-desktop-bin-1.10.1.ebuild | 117 |
3 files changed, 126 insertions, 0 deletions
diff --git a/net-im/session-desktop-bin/Manifest b/net-im/session-desktop-bin/Manifest new file mode 100644 index 000000000..3246ba750 --- /dev/null +++ b/net-im/session-desktop-bin/Manifest @@ -0,0 +1 @@ +DIST session-desktop-linux-amd64-1.10.1.deb 67725508 BLAKE2B f6ad9e45c582cfec6a2e0d19dc19908e7dcc2d47a6246b1eeb7433375b2e0bbf79763ae17029fb8334a25b501227ede1bca037b43b32529cc3898e535d779d91 SHA512 b16c2f37ba90ef5af8e5fff329818c88c3a80a243efeabc4cab21815306b78d0dfb1f262620e105b72f88c4a922f197e5b0b41fae54e0062e62bf237c5993bef diff --git a/net-im/session-desktop-bin/metadata.xml b/net-im/session-desktop-bin/metadata.xml new file mode 100644 index 000000000..ecf3a18b2 --- /dev/null +++ b/net-im/session-desktop-bin/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>paul007-dev@outlook.com</email> + <name>Akash paul</name> + </maintainer> +</pkgmetadata> diff --git a/net-im/session-desktop-bin/session-desktop-bin-1.10.1.ebuild b/net-im/session-desktop-bin/session-desktop-bin-1.10.1.ebuild new file mode 100644 index 000000000..340fcc3ed --- /dev/null +++ b/net-im/session-desktop-bin/session-desktop-bin-1.10.1.ebuild @@ -0,0 +1,117 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="${PN/-bin/}" + +CHROMIUM_LANGS=" + am ar bg bn ca cs da de el en-GB en-US 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 vi zh-CN zh-TW +" + +inherit chromium-2 linux-info unpacker optfeature xdg + +DESCRIPTION="Session Desktop - Onion routing based messenger" +HOMEPAGE="https://getsession.org/ https://github.com/oxen-io/session-desktop" +SRC_URI="https://github.com/oxen-io/session-desktop/releases/download/v${PV}/session-desktop-linux-amd64-${PV}.deb" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +RESTRICT="splitdebug" + +RDEPEND=" + app-accessibility/at-spi2-atk:2 + app-accessibility/at-spi2-core:2 + dev-libs/atk + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + dev-libs/wayland + media-libs/alsa-lib + media-libs/mesa[X(+)] + net-print/cups + sys-apps/dbus[X] + x11-libs/cairo + x11-libs/gtk+:3[X] + x11-libs/libdrm + x11-libs/libX11 + x11-libs/libxcb + x11-libs/libxkbcommon + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/pango +" +DESTDIR="/opt/${MY_PN}" + +QA_PREBUILT=" + ${DESTDIR#/}/session-desktop + ${DESTDIR#/}/chrome_crashpad_handler + ${DESTDIR#/}/chrome-sandbox + ${DESTDIR#/}/libffmpeg.so + ${DESTDIR#/}/libvk_swiftshader.so + ${DESTDIR#/}/libvulkan.so.1 + ${DESTDIR#/}/libEGL.so + ${DESTDIR#/}/libGLESv2.so + ${DESTDIR#/}/libVkICD_mock_icd.so + ${DESTDIR#/}/swiftshader/libEGL.so + ${DESTDIR#/}/swiftshader/libGLESv2.so + ${DESTDIR#/}/resources/app.asar.unpacked/node_modules/* +" + +CONFIG_CHECK="~USER_NS" +S="${WORKDIR}" + +pkg_pretend(){ + chromium_suid_sandbox_check_kernel_config +} + +src_unpack(){ + unpack session-desktop-linux-amd64-${PV}.deb + unpack ../work/data.tar.xz + unpack ../work/usr/share/doc/session-desktop/changelog.gz +} + +src_prepare(){ + default + rm control.tar.gz || die "Deletion of redundant control.tar.gz archive failed" + + pushd "opt/Session/locales/" || die "location change for language cleanup failed" + chromium_remove_language_paks + popd > /dev/null || die "location reset for language cleanup failed" +} + +src_configure(){ + chromium_suid_sandbox_check_kernel_config + default +} + +src_install(){ + insinto / + dodoc changelog + insopts -m0755 + doins -r opt + + insinto /usr/share + doins -r usr/share/applications + doins -r usr/share/icons + + fperms 4755 /opt/Session/chrome-sandbox + + dosym -r /opt/Session/${MY_PN} /usr/bin/${MY_PN} +} + +pkg_postinst(){ + xdg_pkg_postinst + + optfeature "sound support" \ + media-sound/pulseaudio media-sound/apulse[sdk] media-video/pipewire + optfeature "system tray support" dev-libs/libappindicator +} + |