From d147b91e8037c20b3f05853216685c5e754c99b0 Mon Sep 17 00:00:00 2001 From: Paddy Milner Date: Sat, 27 Sep 2025 00:13:58 +0100 Subject: [PATCH] added zen-bin --- www-client/zen-bin/Manifest | 1 + www-client/zen-bin/files/policies.json | 5 ++ www-client/zen-bin/zen-bin-1.15.5b.ebuild | 83 +++++++++++++++++++ .../zen-browser/zen-browser-9999.ebuild | 45 ---------- 4 files changed, 89 insertions(+), 45 deletions(-) create mode 100644 www-client/zen-bin/Manifest create mode 100644 www-client/zen-bin/files/policies.json create mode 100644 www-client/zen-bin/zen-bin-1.15.5b.ebuild delete mode 100644 www-client/zen-browser/zen-browser-9999.ebuild diff --git a/www-client/zen-bin/Manifest b/www-client/zen-bin/Manifest new file mode 100644 index 0000000..d76dfc1 --- /dev/null +++ b/www-client/zen-bin/Manifest @@ -0,0 +1 @@ +DIST zen-bin-1.15.5b.tar.xz 82050040 BLAKE2B 2024140ef45ae0b773eec24c372ded78e366c307d01d12a165f963c286dc41b2c89738cec4afa5038ed43b1730d89673346e6d114f240d1fdf4393eea4b06145 SHA512 06c57df36cc1909e732bddefaa49a3925d94b91f566ac8022b7a123dfd1256e72b0e772d8441c0f001079cbef58439fd8e5ecf182e0d47c35b6f27c0fb514156 diff --git a/www-client/zen-bin/files/policies.json b/www-client/zen-bin/files/policies.json new file mode 100644 index 0000000..261ff3b --- /dev/null +++ b/www-client/zen-bin/files/policies.json @@ -0,0 +1,5 @@ +{ + "policies": { + "DisableAppUpdate": true + } +} diff --git a/www-client/zen-bin/zen-bin-1.15.5b.ebuild b/www-client/zen-bin/zen-bin-1.15.5b.ebuild new file mode 100644 index 0000000..eac4d07 --- /dev/null +++ b/www-client/zen-bin/zen-bin-1.15.5b.ebuild @@ -0,0 +1,83 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Zen Browser - A fast, privacy-focused Firefox fork" +HOMEPAGE="https://zen-browser.app/" +SRC_URI=" + amd64? ( https://github.com/zen-browser/desktop/releases/download/${PV}/zen.linux-x86_64.tar.xz -> ${P}.tar.xz ) + arm64? ( https://github.com/zen-browser/desktop/releases/download/${PV}/zen.linux-aarch64.tar.xz -> ${P}.tar.xz )" + +S="${WORKDIR}/zen" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +DEPEND=" + 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 +" +RDEPEND="${DEPEND}" + +inherit desktop xdg-utils + +src_install() { + #create dest dir + local destdir="/opt/zen" + insinto "${destdir}" + doins -r * + #create a symlink to the binary + dosym "${destdir}/zen-bin" "/usr/bin/zen" || die + #add icons + local size + for size in 16 32 48 64 128; do + newicon -s ${size} "browser/chrome/icons/default/default${size}.png" zen.png + done + #create desktop file + make_desktop_entry "/usr/bin/zen" "Zen" zen "Network;WebBrowser" + #handle permissions of destdir files + fperms 0755 "${destdir}"/{zen-bin,updater,glxtest,vaapitest} + fperms 0750 "${destdir}"/pingsender + # Disable auto-updates + insinto ${destdir}/distribution + doins "${FILESDIR}/policies.json" +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update + elog "For optimal performance and compatibility, please ensure" + elog "that you have the latest graphics drivers installed." +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update +} diff --git a/www-client/zen-browser/zen-browser-9999.ebuild b/www-client/zen-browser/zen-browser-9999.ebuild deleted file mode 100644 index d635d46..0000000 --- a/www-client/zen-browser/zen-browser-9999.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 2023-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -EPYTHON=/usr/bin/python -PYTHON_COMPAT=( python3_{10..13} ) - -inherit git-r3 - -RESTRICT="network-sandbox sandbox userpriv" - -DESCRIPTION="Welcome to a calmer internet " -HOMEPAGE="https://zen-browser.app" - -EGIT_REPO_URI="https://github.com/zen-browser/desktop.git" - -LICENSE="MPL-2.0" -SLOT="0" -KEYWORDS="~amd64 ~arm64" - -DEPEND="" -RDEPEND=${DEPEND} - -BDEPEND="dev-vcs/git - net-misc/curl - dev-lang/python - dev-python/pip - net-libs/nodejs[npm] - dev-util/cbindgen - dev-util/bindgen" - -src_prepare() { - git config --global user.email "rr151panda@outlook.com" - git config --global user.name "Paddy Milner" - npm i || die - npm run init || die - python ./scripts/update_en_US_packs.py || die - npm run bootstrap || die - eapply_user -} - -src_compile() { - npm run build --with-libclang-path="$(llvm-config --libdir)" || die -} \ No newline at end of file