www-client/zen-bin: add 1.12.8b

Signed-off-by: Julien Roy <julien@jroy.ca>
This commit is contained in:
Julien Roy
2025-05-23 15:17:54 -04:00
parent 9434a2bf68
commit b13bf3f34b
2 changed files with 90 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST zen-bin-1.12.6b.tar.xz 78237316 BLAKE2B 3715a3cee78885ac9f32518dcf66f3e4daea3bce11bf62a9c0a62cd5653b350abbcc5acafd1a775392b646ff4ee663527c7cc124dfd9b67ce90cea4802619f88 SHA512 28bff03727521232f7dc6a80d5f185fbc5fad49d91bf7b8dd1f1ead24c8f038d053660b7bc1bae7a77c41e248753cbbdcae4077564b51ad15068d72d622d07c1 DIST zen-bin-1.12.6b.tar.xz 78237316 BLAKE2B 3715a3cee78885ac9f32518dcf66f3e4daea3bce11bf62a9c0a62cd5653b350abbcc5acafd1a775392b646ff4ee663527c7cc124dfd9b67ce90cea4802619f88 SHA512 28bff03727521232f7dc6a80d5f185fbc5fad49d91bf7b8dd1f1ead24c8f038d053660b7bc1bae7a77c41e248753cbbdcae4077564b51ad15068d72d622d07c1
DIST zen-bin-1.12.7b.tar.xz 78263980 BLAKE2B 976a59888a7850b02cb7d90e7316c9cd5686bb5e39b6a855a9c7639153665ea66e359ac7a851e3248139864036880fd95d15b9baf6d7ae683e6adaecbe4268aa SHA512 a3190cc67fbb9b0399bdbd8e358d58748f11363aa96937fc5e62a1d8b4b069fcffea921adcaa70eaa339d3548d6945506268d75976b408a2bef0fca212e835dc DIST zen-bin-1.12.7b.tar.xz 78263980 BLAKE2B 976a59888a7850b02cb7d90e7316c9cd5686bb5e39b6a855a9c7639153665ea66e359ac7a851e3248139864036880fd95d15b9baf6d7ae683e6adaecbe4268aa SHA512 a3190cc67fbb9b0399bdbd8e358d58748f11363aa96937fc5e62a1d8b4b069fcffea921adcaa70eaa339d3548d6945506268d75976b408a2bef0fca212e835dc
DIST zen-bin-1.12.8b.tar.xz 78251892 BLAKE2B 87aa8dcb09b06fcfc148d293fff9b54e5889aca15599b3696e175f80a8eb060dfcad9a62843d1504b0cc97e10645327790086356a3adc320c9a3fb572505f998 SHA512 f632ac214445fd055e755b4fb96592887432b55455c9c3c50704b82734e71f588f4150b020908fad1f564cea5c339c84ed52b7c673c2dd2a0a5e1f852b22be7c

View File

@@ -0,0 +1,89 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit xdg-utils desktop
MY_P="zen"
DESCRIPTION="Zen Browser - A Firefox-based browser focused on privacy"
HOMEPAGE="https://github.com/zen-browser/desktop"
SRC_URI="https://github.com/zen-browser/desktop/releases/download/${PV}/${MY_P}.linux-x86_64.tar.xz -> ${P}.tar.xz"
S="${WORKDIR}"
LICENSE="MPL-2.0"
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/fontconfig
media-libs/freetype
media-libs/mesa
net-print/cups
sys-apps/dbus
sys-libs/glibc
x11-libs/cairo
x11-libs/gdk-pixbuf:2
x11-libs/gtk+:3
x11-libs/libX11
x11-libs/libxcb
x11-libs/libXcomposite
x11-libs/libXcursor
x11-libs/libXdamage
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libXi
x11-libs/libXrandr
x11-libs/libXrender
x11-libs/libXtst
x11-libs/pango
"
DEPEND="${RDEPEND}"
QA_PREBUILT="opt/zen/*"
src_install() {
#create dest dir
local destdir="/opt/zen"
dodir "${destdir}"
#copy files into dest dir
cp -a "${S}/zen"/* "${ED}${destdir}" || die
#create a symlink to the binary
dosym "${destdir}/zen-bin" "/usr/bin/zen-bin" || die
#add icons
local icon_dir="${ED}${destdir}/browser/chrome/icons/default"
if [[ -d "${icon_dir}" ]]; then
for size in 16 32 48 64 128; do
if [[ -f "${icon_dir}/default${size}.png" ]]; then
newicon -s ${size} "${icon_dir}/default${size}.png" zen.png
fi
done
else
ewarn "Icon directory not found, skipping icon installation"
fi
#create desktop file
make_desktop_entry zen-bin "Zen" zen "Network;WebBrowser"
#handle permissions of destdir files
fperms 0755 "${destdir}"/{zen-bin,updater,glxtest,vaapitest}
fperms 0750 "${destdir}"/pingsender
}
pkg_postinst() {
xdg_icon_cache_update
xdg_desktop_database_update
elog "For optimal performance and compatibility, please ensure"
elog "that you have the latest graphics drivers installed."
}
pkg_postrm() {
xdg_icon_cache_update
xdg_desktop_database_update
}