Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packagelist
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ hamclock-huge
harmonoid-deb
hayase-deb
headset-deb
helium-browser-bin
helix
hello
hello-rhino-bin
Expand Down
44 changes: 44 additions & 0 deletions packages/helium-browser-bin/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
pkgbase = helium-browser-bin
gives = helium-browser
pkgver = 0.7.7.1
pkgrel = 1
pkgdesc = Private, fast, and honest web browser based on Chromium
url = https://github.com/imputnet/helium-linux
arch = amd64
arch = arm64
depends = libgtk-3-0t64
depends = libnss3
depends = libasound2t64
depends = xdg-utils
depends = libxss1
depends = libcups2
depends = libgcrypt20
depends = fonts-liberation
depends = systemd
depends = dbus
depends = libpulse0
depends = pciutils
depends = libva2
depends = libffi8
depends = desktop-file-utils
depends = hicolor-icon-theme
depends = ca-certificates
optdepends = pipewire: WebRTC desktop sharing under Wayland
optdepends = kdialog: support for native dialogs in Plasma
optdepends = libgtk-4-1: for --gtk-version=4 (GTK4 IME might work better on Wayland)
optdepends = gnome-keyring: password storage backend on GNOME / Xfce
optdepends = kwallet6: support for storing passwords in KWallet on Plasma
optdepends = upower: Battery Status API support
license = GPL-3.0-only
license = BSD-3-Clause
maintainer = tranquil-tr0 <tranquil-tr0@proton.me>
source_amd64 = helium-0.7.7.1-x86_64_linux.tar.xz::https://github.com/imputnet/helium-linux/releases/download/0.7.7.1/helium-0.7.7.1-x86_64_linux.tar.xz
source_amd64 = LICENSE.ungoogled_chromium::https://raw.githubusercontent.com/imputnet/helium-linux/0.7.7.1/LICENSE.ungoogled_chromium
sha256sums_amd64 = 698f46c080cf4dcb249b9e4d96e4b2c640870ba76b77a05d05a358661af39511
sha256sums_amd64 = 9539b394e4179952698894bd62ef6566b6804ab0ff360dcf3a511cfaf7f78c4d
source_arm64 = helium-0.7.7.1-arm64_linux.tar.xz::https://github.com/imputnet/helium-linux/releases/download/0.7.7.1/helium-0.7.7.1-arm64_linux.tar.xz
source_arm64 = LICENSE.ungoogled_chromium::https://raw.githubusercontent.com/imputnet/helium-linux/0.7.7.1/LICENSE.ungoogled_chromium
sha256sums_arm64 = efa849d7dfdb1f3744d7ffe478617d8a66243073b2e951e9039e9bc44920c200
sha256sums_arm64 = 9539b394e4179952698894bd62ef6566b6804ab0ff360dcf3a511cfaf7f78c4d

pkgname = helium-browser-bin
106 changes: 106 additions & 0 deletions packages/helium-browser-bin/helium-browser-bin.pacscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
_pkgname="helium"
pkgname="${_pkgname}-browser-bin"
gives="helium-browser"
pkgver=0.7.7.1
pkgrel=1
Comment on lines +4 to +5
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pkgver=0.7.7.1
pkgrel=1
pkgver="0.7.7.1"

pkgdesc="Private, fast, and honest web browser based on Chromium"
maintainer=("tranquil-tr0 <tranquil-tr0@proton.me>")
arch=('amd64' 'arm64')
url="https://github.com/imputnet/helium-linux"
license=('GPL-3.0-only' 'BSD-3-Clause')
depends=('libgtk-3-0t64' 'libnss3' 'libasound2t64' 'xdg-utils' 'libxss1' 'libcups2' 'libgcrypt20'
'fonts-liberation' 'systemd' 'dbus' 'libpulse0' 'pciutils' 'libva2'
'libffi8' 'desktop-file-utils' 'hicolor-icon-theme' 'ca-certificates')
optdepends=('pipewire: WebRTC desktop sharing under Wayland'
'kdialog: support for native dialogs in Plasma'
'libgtk-4-1: for --gtk-version=4 (GTK4 IME might work better on Wayland)'
'gnome-keyring: password storage backend on GNOME / Xfce'
'kwallet6: support for storing passwords in KWallet on Plasma'
'upower: Battery Status API support')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

source_amd64=(
"${_pkgname}-${pkgver}-x86_64_linux.tar.xz::https://github.com/imputnet/helium-linux/releases/download/${pkgver}/${_pkgname}-${pkgver}-x86_64_linux.tar.xz"
"LICENSE.ungoogled_chromium::https://raw.githubusercontent.com/imputnet/helium-linux/${pkgver}/LICENSE.ungoogled_chromium"
)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

source_arm64=(
"${_pkgname}-${pkgver}-arm64_linux.tar.xz::https://github.com/imputnet/helium-linux/releases/download/${pkgver}/${_pkgname}-${pkgver}-arm64_linux.tar.xz"
"LICENSE.ungoogled_chromium::https://raw.githubusercontent.com/imputnet/helium-linux/${pkgver}/LICENSE.ungoogled_chromium"
)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

sha256sums_amd64=('698f46c080cf4dcb249b9e4d96e4b2c640870ba76b77a05d05a358661af39511'
'9539b394e4179952698894bd62ef6566b6804ab0ff360dcf3a511cfaf7f78c4d')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

sha256sums_arm64=('efa849d7dfdb1f3744d7ffe478617d8a66243073b2e951e9039e9bc44920c200'
'9539b394e4179952698894bd62ef6566b6804ab0ff360dcf3a511cfaf7f78c4d')

prepare() {
_archdir="${_pkgname}-${pkgver}-$([[ ${CARCH} == "arm64" ]] && echo "arm64" || echo "x86_64")_linux"
sed -i \
-e 's/Exec=chromium/Exec=helium-browser/' \
-e 's/Name=Helium$/Name=Helium Browser/' \
-e 's/Icon=helium/Icon=helium-browser/' \
"${srcdir}/${_archdir}/helium.desktop"
}

package() {
_archdir="${_pkgname}-${pkgver}-$([[ ${CARCH} == "arm64" ]] && echo "arm64" || echo "x86_64")_linux"
install -dm755 "${pkgdir}/usr/lib/${gives}"
cp -a "${srcdir}/${_archdir}/"* "${pkgdir}/usr/lib/${gives}/"
install -Dm644 "${srcdir}/${_archdir}/helium.desktop" \
"${pkgdir}/usr/share/applications/helium-browser.desktop"
install -Dm644 "${pkgdir}/usr/lib/${gives}/product_logo_256.png" \
"${pkgdir}/usr/share/pixmaps/helium-browser.png"
install -Dm644 "${pkgdir}/usr/lib/${gives}/product_logo_256.png" \
"${pkgdir}/usr/share/icons/hicolor/256x256/apps/helium-browser.png"
install -Dm644 "${srcdir}/LICENSE.ungoogled_chromium" \
"${pkgdir}/usr/share/doc/${pkgname}/LICENSE.ungoogled_chromium"
install -dm755 "${pkgdir}/usr/bin"
cat > "${pkgdir}/usr/bin/helium-browser" << 'EOF'
#!/bin/bash
set -euo pipefail

XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-"$HOME/.config"}"

SYS_CONF="/etc/helium-browser-flags.conf"
USR_CONF="${XDG_CONFIG_HOME}/helium-browser-flags.conf"

FLAGS=()

append_flags_file() {
local file="$1"
[[ -r "$file" ]] || return 0
local line safe_line
while IFS= read -r line; do
[[ "$line" =~ ^[[:space:]]*(#|$) ]] && continue
case "$line" in
*'$('*|*'`'*)
echo "Warning: ignoring unsafe line in $file: $line" >&2
continue
;;
esac
set -f
safe_line=${line//$/\\$}
safe_line=${safe_line//~/\\~}
eval "set -- $safe_line"
set +f
for token in "$@"; do
FLAGS+=("$token")
done
done < "$file"
}

append_flags_file "$SYS_CONF"
append_flags_file "$USR_CONF"

if [[ -n "${HELIUM_USER_FLAGS:-}" ]]; then
read -r -a ENV_FLAGS <<< "$HELIUM_USER_FLAGS"
FLAGS+=("${ENV_FLAGS[@]}")
fi

export CHROME_VERSION_EXTRA="stable"

exec /usr/lib/helium-browser/chrome "${FLAGS[@]}" "$@"
EOF
chmod 755 "${pkgdir}/usr/bin/helium-browser"
}
45 changes: 45 additions & 0 deletions srclist
Original file line number Diff line number Diff line change
Expand Up @@ -5143,6 +5143,51 @@ pkgbase = headset-deb

pkgname = headset-deb
---
pkgbase = helium-browser-bin
gives = helium-browser
pkgver = 0.7.7.1
pkgrel = 1
pkgdesc = Private, fast, and honest web browser based on Chromium
url = https://github.com/imputnet/helium-linux
arch = amd64
arch = arm64
depends = libgtk-3-0t64
depends = libnss3
depends = libasound2t64
depends = xdg-utils
depends = libxss1
depends = libcups2
depends = libgcrypt20
depends = fonts-liberation
depends = systemd
depends = dbus
depends = libpulse0
depends = pciutils
depends = libva2
depends = libffi8
depends = desktop-file-utils
depends = hicolor-icon-theme
depends = ca-certificates
optdepends = pipewire: WebRTC desktop sharing under Wayland
optdepends = kdialog: support for native dialogs in Plasma
optdepends = libgtk-4-1: for --gtk-version=4 (GTK4 IME might work better on Wayland)
optdepends = gnome-keyring: password storage backend on GNOME / Xfce
optdepends = kwallet6: support for storing passwords in KWallet on Plasma
optdepends = upower: Battery Status API support
license = GPL-3.0-only
license = BSD-3-Clause
maintainer = tranquil-tr0 <tranquil-tr0@proton.me>
source_amd64 = helium-0.7.7.1-x86_64_linux.tar.xz::https://github.com/imputnet/helium-linux/releases/download/0.7.7.1/helium-0.7.7.1-x86_64_linux.tar.xz
source_amd64 = LICENSE.ungoogled_chromium::https://raw.githubusercontent.com/imputnet/helium-linux/0.7.7.1/LICENSE.ungoogled_chromium
sha256sums_amd64 = 698f46c080cf4dcb249b9e4d96e4b2c640870ba76b77a05d05a358661af39511
sha256sums_amd64 = 9539b394e4179952698894bd62ef6566b6804ab0ff360dcf3a511cfaf7f78c4d
source_arm64 = helium-0.7.7.1-arm64_linux.tar.xz::https://github.com/imputnet/helium-linux/releases/download/0.7.7.1/helium-0.7.7.1-arm64_linux.tar.xz
source_arm64 = LICENSE.ungoogled_chromium::https://raw.githubusercontent.com/imputnet/helium-linux/0.7.7.1/LICENSE.ungoogled_chromium
sha256sums_arm64 = efa849d7dfdb1f3744d7ffe478617d8a66243073b2e951e9039e9bc44920c200
sha256sums_arm64 = 9539b394e4179952698894bd62ef6566b6804ab0ff360dcf3a511cfaf7f78c4d

pkgname = helium-browser-bin
---
pkgbase = helix
pkgver = 25.01.1
pkgdesc = A post-modern modal text editor
Expand Down