commit:     63a35cc93e4237fbe42bbaea8a77417014ccca87
Author:     Jonas Frei <freijon <AT> pm <DOT> me>
AuthorDate: Tue Dec 16 16:32:19 2025 +0000
Commit:     Jonas Frei <freijon <AT> pm <DOT> me>
CommitDate: Tue Dec 16 16:32:19 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=63a35cc9

www-client/helium-bin: new package, add 0.7.5.1

Signed-off-by: Jonas Frei <freijon <AT> pm.me>

 www-client/helium-bin/Manifest                  |   2 +
 www-client/helium-bin/files/helium              |   9 ++
 www-client/helium-bin/files/helium.desktop      |   9 ++
 www-client/helium-bin/helium-bin-0.7.5.1.ebuild | 116 ++++++++++++++++++++++++
 www-client/helium-bin/metadata.xml              |  12 +++
 5 files changed, 148 insertions(+)

diff --git a/www-client/helium-bin/Manifest b/www-client/helium-bin/Manifest
new file mode 100644
index 0000000000..c22d7be5f0
--- /dev/null
+++ b/www-client/helium-bin/Manifest
@@ -0,0 +1,2 @@
+DIST helium-bin-0.7.5.1-amd64.tar.xz 131271020 BLAKE2B 
ea3ff148b6c3a7ca6e9aefb177ceb85adcdd558b274b76cc74c56d24f64b00505123a3a6aba5dc3f683657a1aec0d2146fb82f209c7de3298807f2061d022f7e
 SHA512 
fd234eba54c4e3efa0ef9df95bddb5094c10066f29f22425d41ed28504e231c0e3d126de371483d932ba67f3ae39e6e094b127f6a089c38a5b1fe775a238527f
+DIST helium-bin-0.7.5.1-arm64.tar.xz 123751340 BLAKE2B 
7cbee0ebf31761b6dede5e9c4ff07173e247189304561d2f0ce7501ce207a5ab7466331a5ba6aecf7cc6394ba1d7adedf5466479bc8ad464621a5e009beebbdf
 SHA512 
33e76a86f5935a6a6eeb9ccc2c3a95c5d09ff53d63867e1711e48f627b9fb8b4a930ed58602e8fc7b0edc54f53040ba7525ca352103ca9f51c3691ec3b0baac6

diff --git a/www-client/helium-bin/files/helium 
b/www-client/helium-bin/files/helium
new file mode 100644
index 0000000000..797d423c48
--- /dev/null
+++ b/www-client/helium-bin/files/helium
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+set -euo pipefail
+export LD_LIBRARY_PATH="/opt/helium${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
+
+# Custom flags (add your chrome://flags overrides here)
+# Example: EXTRA_FLAGS="--force-dark-mode --enable-features=VaapiVideoDecoder"
+EXTRA_FLAGS=""
+
+exec /opt/helium/chrome $EXTRA_FLAGS "$@"

diff --git a/www-client/helium-bin/files/helium.desktop 
b/www-client/helium-bin/files/helium.desktop
new file mode 100644
index 0000000000..fa7328d49d
--- /dev/null
+++ b/www-client/helium-bin/files/helium.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Name=Helium
+Comment=Helium Browser
+Exec=/usr/bin/helium %U
+Terminal=false
+Categories=Network;WebBrowser;
+StartupNotify=true
+Icon=helium

diff --git a/www-client/helium-bin/helium-bin-0.7.5.1.ebuild 
b/www-client/helium-bin/helium-bin-0.7.5.1.ebuild
new file mode 100644
index 0000000000..9256741b38
--- /dev/null
+++ b/www-client/helium-bin/helium-bin-0.7.5.1.ebuild
@@ -0,0 +1,116 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CHROMIUM_LANGS="af am ar as az be bg bn bs ca cs cy da de el en-GB en-US 
es-419 es et
+       eu fa fi fil fr-CA fr gl gu he hi hr hu hy id is it ja ka kk km kn ko 
ky lo lt lv
+       mk ml mn mr ms my nb ne nl or pa pl pt-BR pt-PT ro ru si sk sl sq 
sr-Latn sr sv
+       sw ta te th tr uk ur uz vi zh-CN zh-HK zh-TW zu"
+
+inherit chromium-2 desktop pax-utils xdg
+
+DESCRIPTION="Private, fast, and honest web browser based on Chromium"
+HOMEPAGE="https://helium.computer/";
+
+MY_PN="helium"
+MY_P="${MY_PN}-${PV}"
+
+if [[ ${ARCH} == amd64 ]] ; then
+       ARCH_TXT="x86_64"
+elif [[ ${ARCH} == arm64 ]] ; then
+       ARCH_TXT="${ARCH}"
+fi
+
+# 
SRC_URI="https://github.com/imputnet/${MY_PN}-linux/releases/download/${PV}/${MY_P}-${ARCH_TXT}_linux.tar.xz
 -> ${P}.tar.xz"
+SRC_URI="
+amd64? ( 
https://github.com/imputnet/${MY_PN}-linux/releases/download/${PV}/${MY_P}-x86_64_linux.tar.xz
 -> ${P}-amd64.tar.xz )
+arm64? ( 
https://github.com/imputnet/${MY_PN}-linux/releases/download/${PV}/${MY_P}-arm64_linux.tar.xz
 -> ${P}-arm64.tar.xz )
+"
+
+# S=${WORKDIR}/${MY_P}-x86_64_linux
+S=${WORKDIR}
+
+LICENSE="GPL-3 BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+
+IUSE="qt6 selinux"
+
+RESTRICT="bindist mirror strip"
+
+RDEPEND="
+       >=app-accessibility/at-spi2-core-2.46.0:2
+       app-misc/ca-certificates
+       dev-libs/expat
+       dev-libs/glib:2
+       dev-libs/nspr
+       >=dev-libs/nss-3.26
+       media-fonts/liberation-fonts
+       media-libs/alsa-lib
+       media-libs/mesa[gbm(+)]
+       net-misc/curl
+       net-print/cups
+       sys-apps/dbus
+       sys-libs/glibc
+       sys-libs/libcap
+       x11-libs/cairo
+       x11-libs/gdk-pixbuf:2
+       || (
+               x11-libs/gtk+:3[X]
+               gui-libs/gtk:4[X]
+       )
+       x11-libs/libdrm
+       >=x11-libs/libX11-1.5.0
+       x11-libs/libXcomposite
+       x11-libs/libXdamage
+       x11-libs/libXext
+       x11-libs/libXfixes
+       x11-libs/libXrandr
+       x11-libs/libxcb
+       x11-libs/libxkbcommon
+       x11-libs/libxshmfence
+       x11-libs/pango
+       x11-misc/xdg-utils
+       qt6? ( dev-qt/qtbase:6[gui,widgets] )
+       selinux? ( sec-policy/selinux-chromium )
+"
+
+QA_PREBUILT="*"
+
+pkg_setup() {
+       chromium_suid_sandbox_check_kernel_config
+}
+
+# Skip unpack, we're doing it during install
+src_unpack() {
+       :
+}
+
+src_install() {
+       dodir "opt" || die
+       cd "${ED}/opt/" || die
+
+       # Not possible to unpack to target folder, so: unpack, then mv
+       unpack "${P}-${ARCH}.tar.xz"
+       mv ${MY_P}-${ARCH_TXT}_linux ${MY_PN} || die
+
+       cd "${MY_PN}" || die
+
+       pushd "locales" > /dev/null || die
+       # Remove empty .info files
+       rm *.info || die
+       chromium_remove_language_paks
+       popd > /dev/null || die
+
+       rm "libqt5_shim.so" || die
+       if ! use qt6; then
+               rm "libqt6_shim.so" || die
+       fi
+
+       newicon -s 256 "product_logo_256.png" ${MY_PN}.png
+       domenu "${FILESDIR}/${MY_PN}.desktop"
+       dobin "${FILESDIR}/${MY_PN}"
+
+       pax-mark m "chrome"
+}

diff --git a/www-client/helium-bin/metadata.xml 
b/www-client/helium-bin/metadata.xml
new file mode 100644
index 0000000000..6b13ff8c16
--- /dev/null
+++ b/www-client/helium-bin/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Jonas Frei</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">imputnet/helium-linux</remote-id>
+               <bugs-to>https://github.com/imputnet/helium/issues</bugs-to>
+       </upstream>
+</pkgmetadata>

Reply via email to