zen-browser-i18n-bg

LOW
maintainer hiruocha 0 votes base zen-browser-i18n scanned 2026-10-29 11:52:15.123535
View on AUR
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>
2pkgbase=zen-browser-i18n
3pkgver=1.23b
4pkgrel=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
49pkgname=()
50for _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}"
60done
61
62url='https://zen-browser.app'
63arch=('any')
64license=('MPL-2.0')
65makedepends=(
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
89source=(
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)
94sha256sums=('c2a2f7853f939f1a5f510c885d450564e5bcf6957453c1ff3adb0ea595b872aa'
95 '28b086f5492d8e6731fe0dfe34a2e4c6d4d502a9eefa15a31e44b5788cf4df89'
96 '90ee92d93beeeeb8d0838f51312d9a2ece17631cdf0a2d2fdc96a5e6be898018')
97
98prepare() {
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
106ac_add_options --enable-application=browser
107mk_add_options MOZ_OBJDIR=${PWD@Q}/obj
108
109ac_add_options --prefix=/usr
110ac_add_options --enable-release
111ac_add_options --enable-hardening
112ac_add_options --enable-optimize
113ac_add_options --enable-linker=lld
114ac_add_options --disable-install-strip
115ac_add_options --disable-bootstrap
116ac_add_options --with-wasi-sysroot=/usr/share/wasi-sysroot
117ac_add_options --with-l10n-base=${PWD@Q}/browser/locales
118
119ac_add_options --with-app-name=zen
120ac_add_options --with-app-basename=Zen
121ac_add_options --with-branding=browser/branding/release
122ac_add_options --enable-update-channel=release
123ac_add_options --with-distribution-id=org.archlinux
124ac_add_options --with-unsigned-addon-scopes=app,system
125ac_add_options --allow-addon-sideload
126export MOZILLA_OFFICIAL=1
127
128ac_add_options --enable-crashreporter
129ac_add_options --disable-updater
130ac_add_options --disable-tests
131EOF
132}
133
134build() {
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)SeverityRules
2026-10-29 11:52:15 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion