zen-browser-i18n-it
LOW
maintainer hiruocha
0 votes
base
zen-browser-i18n
scanned 2026-10-29 11:52:15.123535
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: hiruocha <hiruocha[at]outlook[dot]com>
2
pkgbase=zen-browser-i18n
3
pkgver=1.23b
4
pkgrel=1
5
6
_languages=(
7
'ar Arabic'
8
'bg Bulgarian'
9
'bs Bosnian'
10
'ca Catalan'
11
'cs Czech'
12
'cy Welsh'
13
'da Danish'
14
'de German'
15
'el Greek'
16
'en-GB English (British)'
17
'es-ES Spanish (Spain)'
18
'et Estonian'
19
'fa Persian'
20
'fi Finnish'
21
'fr French'
22
'ga-IE Irish'
23
'he Hebrew'
24
'hu Hungarian'
25
'id Indonesian'
26
'is Icelandic'
27
'it Italian'
28
'ja Japanese'
29
'ko Korean'
30
'lt Lithuanian'
31
'nb-NO Norwegian (Bokmål)'
32
'nl Dutch'
33
'nn-NO Norwegian (Nynorsk)'
34
'pl Polish'
35
'pt-BR Portuguese (Brazilian)'
36
'pt-PT Portuguese (Portugal)'
37
'ro Romanian'
38
'ru Russian'
39
'sk Slovak'
40
'sv-SE Swedish'
41
'th Thai'
42
'tr Turkish'
43
'uk Ukrainian'
44
'vi Vietnamese'
45
'zh-CN Chinese (Simplified)'
46
'zh-TW Chinese (Traditional)'
47
)
48
49
pkgname=()
50
for _lang in "${_languages[@]}"; do
51
read -r _locale _name <<< "$_lang"
52
_pkgname="zen-browser-i18n-${_locale,,}"
53
pkgname+=("$_pkgname")
54
eval "package_$_pkgname() {
55
pkgdesc='$_name language pack for Zen Browser'
56
depends=('zen-browser>=$pkgver')
57
provides=('zen-browser-i18n=$pkgver-$pkgrel')
58
_package_i18n '$_locale'
59
}"
60
done
61
62
url='https://zen-browser.app'
63
arch=('any')
64
license=('MPL-2.0')
65
makedepends=(
66
cargo
67
cbindgen
68
clang
69
dbus
70
diffutils
71
ffmpeg
72
gtk3
73
libpulse
74
libxss
75
libxt
76
lld
77
llvm
78
mesa
79
nasm
80
nodejs
81
python
82
wasi-compiler-rt
83
wasi-libc
84
wasi-libc++
85
wasi-libc++abi
86
yasm
87
)
88
89
source=(
90
"zen-source-$pkgver.tar.zst::https://github.com/zen-browser/desktop/releases/download/$pkgver/zen.source.tar.zst"
91
'0004-Use-wasm32-wasip1-target.patch'
92
'Use-Zen-langpack-EID.patch'
93
)
94
sha256sums=('c2a2f7853f939f1a5f510c885d450564e5bcf6957453c1ff3adb0ea595b872aa'
95
'28b086f5492d8e6731fe0dfe34a2e4c6d4d502a9eefa15a31e44b5788cf4df89'
96
'90ee92d93beeeeb8d0838f51312d9a2ece17631cdf0a2d2fdc96a5e6be898018')
97
98
prepare() {
99
cd "$srcdir"
100
rm -f "$srcdir/.mozconfig"
101
102
patch -Np1 -i "$srcdir/0004-Use-wasm32-wasip1-target.patch"
103
patch -Np1 -i "$srcdir/Use-Zen-langpack-EID.patch"
104
105
cat >"$srcdir/mozconfig" <<EOF
106
ac_add_options --enable-application=browser
107
mk_add_options MOZ_OBJDIR=${PWD@Q}/obj
108
109
ac_add_options --prefix=/usr
110
ac_add_options --enable-release
111
ac_add_options --enable-hardening
112
ac_add_options --enable-optimize
113
ac_add_options --enable-linker=lld
114
ac_add_options --disable-install-strip
115
ac_add_options --disable-bootstrap
116
ac_add_options --with-wasi-sysroot=/usr/share/wasi-sysroot
117
ac_add_options --with-l10n-base=${PWD@Q}/browser/locales
118
119
ac_add_options --with-app-name=zen
120
ac_add_options --with-app-basename=Zen
121
ac_add_options --with-branding=browser/branding/release
122
ac_add_options --enable-update-channel=release
123
ac_add_options --with-distribution-id=org.archlinux
124
ac_add_options --with-unsigned-addon-scopes=app,system
125
ac_add_options --allow-addon-sideload
126
export MOZILLA_OFFICIAL=1
127
128
ac_add_options --enable-crashreporter
129
ac_add_options --disable-updater
130
ac_add_options --disable-tests
131
EOF
132
}
133
134
build() {
135
cd "$srcdir"
136
137
export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=pip
138
export MOZBUILD_STATE_PATH="$srcdir/mozbuild"
139
export MOZ_BUILD_DATE="$(date -u${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH} +%Y%m%d%H%M%S)"
140
export MOZ_NOSPAM=1
141
142
CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
143
CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
144
CFLAGS="${CFLAGS/-fexceptions/}"
145
CXXFLAGS="${CXXFLAGS/-fexceptions/}"
146
147
ulimit -n 4096
148
149
./mach build config/host
150
151
local _lang
152
for _lang in "${_languages[@]}"; do
153
./mach build "langpack-${_lang%% *}"
154
done
155
}
156
157
_package_i18n() {
158
local _xpi
159
_xpi=("$srcdir/obj/dist/"*/xpi/*."$1".langpack.xpi)
160
install -Dm644 "${_xpi[0]}" \
161
"$pkgdir/usr/lib/zen-browser/browser/extensions/langpack-$1@zen-browser.app.xpi"
162
}
163
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-29 11:52:15 | Low | 1 |