From d1d6d40649660e5283758e08efe8a8b141b2c68c Mon Sep 17 00:00:00 2001 From: Michal Vu Date: Mon, 23 Sep 2024 22:45:03 +0200 Subject: [PATCH] www-client/zen-bin: add 1.0.1_alpha2 Signed-off-by: Michal Vu --- www-client/zen-bin/Manifest | 2 + .../zen-bin/zen-bin-1.0.1_alpha2.ebuild | 87 +++++++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 www-client/zen-bin/zen-bin-1.0.1_alpha2.ebuild diff --git a/www-client/zen-bin/Manifest b/www-client/zen-bin/Manifest index 1b93a01e4f..080bc8fc6c 100644 --- a/www-client/zen-bin/Manifest +++ b/www-client/zen-bin/Manifest @@ -2,3 +2,5 @@ DIST zen-bin-1.0.0_alpha34.tar.bz2 87624415 BLAKE2B e45d126415e422bb10b316da2cbe DIST zen-bin-1.0.0_alpha35.tar.bz2 87401631 BLAKE2B b079154b3a1b92bce2c347de77e2cf73d38b48ea55936b0cc4c5695b105af3e1140c3bfec5cffb75b61a7cb408cc1603b2eb58ff88ddbe63b0f94c4006b30ff3 SHA512 b76f632371323c22bb9a127354b4610b7ad6e13152049c1377e48224087e5d1f4224c2f6c0583a631593810d11d09dbf6a769e9726f4fa2465809afbb2ca8984 DIST zen-bin-1.0.0_alpha37.tar.bz2 87641638 BLAKE2B f4462692bcc02827267b1abfebfc342aa17c1376036fc04a2423ee4b68d98a3c8c48145849bf8d2bd715546e00c37a14db0c83a1c8f47d019e7050fc8dc789ad SHA512 41b82350e08afb5ab3da5e5c33106bfcf85aa7395de09706eac98d91278cd1c18325efa55b4f5d951c76dff187cf79a704f785d3f604499472630a3d9306aba1 DIST zen-bin-1.0.0_alpha39.tar.bz2 82495682 BLAKE2B c7dccc0a141fbe44949038eb8ba8e770a15f86bed19c1e57e2ff6a042be79a88f7adb1d175902abbe730e8b40695b14116631007277fe2a89334ece79e4d57a6 SHA512 7edb996a8a3f76f01b4a0750ac429dc63b19ad4b8e493cbe4f64789481cb01679bb9269c9a3fdfcd1559f2740cb19f39683a8ddf9b73d89957569bb976bd7d92 +DIST zen-bin-1.0.1_alpha2.tar.bz2 87864427 BLAKE2B aee7605a315c25f887151739fc6773ccaebcde649d6a191eb7c0db040d7ab514812e8de55a3dbcf91b1bab9305c4cb734c79463f9fc93e16f4a30fd2f4007549 SHA512 f7b2d42e932ad0c6a69e77b2adf58680b1457e49b26c9b46414dd8ff6ae779f7d9398836148b73435f1b2eef139b7c9dc36b299efc989185a1958948be1d6d4f +DIST zen-bin-1.0.1_alpha3.tar.bz2 87628641 BLAKE2B 338bc6a7ad0c613b73b99ffab384ffd879dcb2bb6ebfc2a205dad34b071a0aa12f180352e3244a6b180ba728e523a6c746515c716c570611608f906ff7b4f20d SHA512 83b1ac59fe9ca32a48af8f84b68c32e6a6a917d0156809f0b0e70fd0dd7d31dd3275bf0da25dc2a183a485e8fc77f6445d7b09052b872552d60e4d01e6473f07 diff --git a/www-client/zen-bin/zen-bin-1.0.1_alpha2.ebuild b/www-client/zen-bin/zen-bin-1.0.1_alpha2.ebuild new file mode 100644 index 0000000000..3d46a1a763 --- /dev/null +++ b/www-client/zen-bin/zen-bin-1.0.1_alpha2.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit xdg-utils desktop + +MY_PV="1.0.1-a.2" +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/${MY_PV}/${MY_P}.linux-specific.tar.bz2 -> ${P}.tar.bz2" + +S="${WORKDIR}" +LICENSE="MPL-2.0" +SLOT="0" + +RDEPEND=" + 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 + x11-libs/gtk+:3 + x11-libs/libX11 + 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 +}