aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Roy <julien@jroy.ca>2024-12-15 12:59:18 -0500
committerJulien Roy <julien@jroy.ca>2024-12-15 12:59:18 -0500
commitea7045404c42520c38d6eab2b16afd27ffe92907 (patch)
treeededd7ed95ecf485926de986c7aac7254d4c11b6 /www-client
parentgames-emulation/dosbox-x: Use xdg-utils.eclass to set XDG_CONFIG_HOME (diff)
downloadguru-ea7045404c42520c38d6eab2b16afd27ffe92907.tar.gz
guru-ea7045404c42520c38d6eab2b16afd27ffe92907.tar.bz2
guru-ea7045404c42520c38d6eab2b16afd27ffe92907.zip
www-client/zen-bin: add 1.0.2_beta2
Signed-off-by: Julien Roy <julien@jroy.ca>
Diffstat (limited to 'www-client')
-rw-r--r--www-client/zen-bin/Manifest1
-rw-r--r--www-client/zen-bin/zen-bin-1.0.2_beta2.ebuild88
2 files changed, 89 insertions, 0 deletions
diff --git a/www-client/zen-bin/Manifest b/www-client/zen-bin/Manifest
index 698980f15..9d6d8db55 100644
--- a/www-client/zen-bin/Manifest
+++ b/www-client/zen-bin/Manifest
@@ -2,3 +2,4 @@ DIST zen-bin-1.0.1_alpha19.tar.bz2 89522253 BLAKE2B 333168463767dbf85be2c918c818
DIST zen-bin-1.0.1_alpha22.tar.bz2 89579148 BLAKE2B 23b8e88682b806f8937e9ffef082a3b5d90e285d0fa1ed60821fddfa22e464f65a24a43f4cb2edd96b8612e4e2fcf2104dabed194ee1a3d5f998feb35b9f365b SHA512 1e257cfbb1231c42b3e9f4b2867a54aafbbd5552b7316c1044ac452990d0d3bf36858d9cf684b5296b2b03ac4a9003931e8a716c026dadf614ff36027c41f353
DIST zen-bin-1.0.2_beta0.tar.bz2 94265180 BLAKE2B 3f52584c7eaf8b9653ea734a9d9b75aa82dd44b36b9c443ab0c3e4ee9b43f36102d8248962c02b424730196b8804f06c6c49c8b5672b5ee215a7419d0525e089 SHA512 5f2829a3fcf548d469d7bd6404232911a0520bb01e8b9a592a930c0fabad269c7cde297718e5f245a2b51268e0bcd443731498ae791600736868203530c7182d
DIST zen-bin-1.0.2_beta1.tar.bz2 94269909 BLAKE2B 84174e4ef564bc7ca4877764998534fd00a457b21f9c5d94838b7aa6908fe666b4b02e4c85f6547dd4b0608997e995af3f611407bc0fd258d67f019ab59978c4 SHA512 74539f859d0ce5f84799695dfb472423c446a1f1a3d3185e29545b6121a0a50b783e26143628574abb845ce7d67e90abd51f5a1066b6131c5222b0fe6c3ddf1f
+DIST zen-bin-1.0.2_beta2.tar.bz2 94354940 BLAKE2B 88ce300b580775a3995eddab158d2411ac85d081c0c60e5e43a0d93be0c263f61018bd584803cd7c6a962f80314f4c49d469e593f8fee3e3c2fe98df3b351543 SHA512 e05445799b758ae4a97257bf283edb5f499077897e70f9df12a49b36ab982a68f8678d3484e54fb2713d7dcdded0c15458f7b9e55d478f90b70c88bd9825fd6b
diff --git a/www-client/zen-bin/zen-bin-1.0.2_beta2.ebuild b/www-client/zen-bin/zen-bin-1.0.2_beta2.ebuild
new file mode 100644
index 000000000..7b5ba3846
--- /dev/null
+++ b/www-client/zen-bin/zen-bin-1.0.2_beta2.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit xdg-utils desktop
+
+MY_PV="${PV/_beta/-b.}"
+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"
+KEYWORDS="~amd64"
+
+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
+}