Skip to content

Commit 50904dd

Browse files
author
Michal Vu
committed
www-client/zen-bin: add new 'alpha' 37 release
Signed-off-by: Michal Vu <[email protected]>
1 parent 3aab003 commit 50904dd

File tree

2 files changed

+88
-0
lines changed

2 files changed

+88
-0
lines changed

www-client/zen-bin/Manifest

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
DIST zen-bin-1.0.0_alpha34.tar.bz2 87624415 BLAKE2B e45d126415e422bb10b316da2cbe4e6a2251b8a934d6b64258c7edfc5874686f2a0def377ba746cb1a81e85a23db505b8e1c0df091ed1af2f7a17842d779c88b SHA512 8f690270641682a1768002596b323dc1a8dfe4608686e79e598f8001f4dc0d3bb32d9eb4f9dad33bbac7edb9d077f708a2b7a9913044ffb96523dbcf96c6c2cb
22
DIST zen-bin-1.0.0_alpha35.tar.bz2 87401631 BLAKE2B b079154b3a1b92bce2c347de77e2cf73d38b48ea55936b0cc4c5695b105af3e1140c3bfec5cffb75b61a7cb408cc1603b2eb58ff88ddbe63b0f94c4006b30ff3 SHA512 b76f632371323c22bb9a127354b4610b7ad6e13152049c1377e48224087e5d1f4224c2f6c0583a631593810d11d09dbf6a769e9726f4fa2465809afbb2ca8984
3+
DIST zen-bin-1.0.0_alpha37.tar.bz2 87641638 BLAKE2B f4462692bcc02827267b1abfebfc342aa17c1376036fc04a2423ee4b68d98a3c8c48145849bf8d2bd715546e00c37a14db0c83a1c8f47d019e7050fc8dc789ad SHA512 41b82350e08afb5ab3da5e5c33106bfcf85aa7395de09706eac98d91278cd1c18325efa55b4f5d951c76dff187cf79a704f785d3f604499472630a3d9306aba1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# Copyright 1999-2024 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
inherit xdg-utils desktop
7+
8+
MY_PV="1.0.0-a.37"
9+
MY_P="zen"
10+
11+
DESCRIPTION="Zen Browser - A Firefox-based browser focused on privacy"
12+
HOMEPAGE="https://github.com/zen-browser/desktop"
13+
SRC_URI="https://github.com/zen-browser/desktop/releases/download/${MY_PV}/${MY_P}.linux-specific.tar.bz2 -> ${P}.tar.bz2"
14+
15+
S="${WORKDIR}"
16+
LICENSE="MPL-2.0"
17+
SLOT="0"
18+
19+
RDEPEND="
20+
dev-libs/expat
21+
dev-libs/glib:2
22+
dev-libs/nspr
23+
dev-libs/nss
24+
media-libs/alsa-lib
25+
media-libs/fontconfig
26+
media-libs/freetype
27+
media-libs/mesa
28+
net-print/cups
29+
sys-apps/dbus
30+
sys-libs/glibc
31+
x11-libs/cairo
32+
x11-libs/gdk-pixbuf
33+
x11-libs/gtk+:3
34+
x11-libs/libX11
35+
x11-libs/libXcomposite
36+
x11-libs/libXcursor
37+
x11-libs/libXdamage
38+
x11-libs/libXext
39+
x11-libs/libXfixes
40+
x11-libs/libXi
41+
x11-libs/libXrandr
42+
x11-libs/libXrender
43+
x11-libs/libXtst
44+
x11-libs/pango
45+
"
46+
47+
DEPEND="${RDEPEND}"
48+
49+
QA_PREBUILT="opt/zen/*"
50+
51+
src_install() {
52+
#create dest dir
53+
local destdir="/opt/zen"
54+
dodir "${destdir}"
55+
#copy files into dest dir
56+
cp -a "${S}/zen"/* "${ED}${destdir}" || die
57+
#create a symlink to the binary
58+
dosym "${destdir}/zen-bin" "/usr/bin/zen-bin" || die
59+
#add icons
60+
local icon_dir="${ED}${destdir}/browser/chrome/icons/default"
61+
if [[ -d "${icon_dir}" ]]; then
62+
for size in 16 32 48 64 128; do
63+
if [[ -f "${icon_dir}/default${size}.png" ]]; then
64+
newicon -s ${size} "${icon_dir}/default${size}.png" zen.png
65+
fi
66+
done
67+
else
68+
ewarn "Icon directory not found, skipping icon installation"
69+
fi
70+
#create desktop file
71+
make_desktop_entry zen-bin "Zen" zen "Network;WebBrowser"
72+
#handle permissions of destdir files
73+
fperms 0755 "${destdir}"/{zen-bin,updater,glxtest,vaapitest}
74+
fperms 0750 "${destdir}"/pingsender
75+
}
76+
77+
pkg_postinst() {
78+
xdg_icon_cache_update
79+
xdg_desktop_database_update
80+
elog "For optimal performance and compatibility, please ensure"
81+
elog "that you have the latest graphics drivers installed."
82+
}
83+
84+
pkg_postrm() {
85+
xdg_icon_cache_update
86+
xdg_desktop_database_update
87+
}

0 commit comments

Comments
 (0)