youdao-dict

maintainer zxp19821005 · 23 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The package downloads a prebuilt .deb from YouDao's official domain (codown.youdao.com) for packaging, which is normal for distributing prebuilt binaries; no code is downloaded or executed at runtime, and the source host, while not on a standard whitelist, belongs to the vendor.

Triggered rules

LOW AI review downgraded a static finding llm_review

The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads a prebuilt .deb from YouDao's official domain (codown.youdao.com) for packaging, which is normal for distributing prebuilt binaries; no code is downloaded or executed at runtime, and the source host, while not on a standard whitelist, belongs to the vendor.

1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM source=() URL on a non-standard host source_untrusted_domain

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

  • PKGBUILD:43 "${pkgname}-${pkgver}.deb::http://codown.youdao.com/cidian/linux/${pkgname}_${pkgver}-ubuntu-amd64.deb"
  • PKGBUILD:44 "License.html::https://c.youdao.com/dict/law/youdaofanyi_pc_service.html"

PKGBUILD

2 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2# Contributor: yesuu zhang <yesuu79@qq.com>
3# Contributor: fkxxyz <fkxxyz@163.com>
4pkgname=youdao-dict
5pkgver=6.0.0
6pkgrel=13
7pkgdesc="YouDao Dictionary.(Prebuilt version)"
8arch=('x86_64')
9license=('LicenseRef-custom')
10conflicts=("${pkgname}")
11url="http://cidian.youdao.com/"
12depends=(
13 'sqlite'
14 'python-dbus'
15 'python-lxml'
16 #'python-webob'
17 'python-opengl'
18 'python-gobject'
19 'python-xlib'
20 'python-requests'
21 'gstreamer'
22 #'python-pyquery'
23 #'python-pyqt5-webkit'
24 'gobject-introspection-runtime'
25 #'python-cssselect'
26 'python-pyxdg'
27 #'qt5-webkit'
28 'qt5-quickcontrols'
29 'qt5-graphicaleffects'
30 'tesseract'
31 #'tesseract-data-chi_sim'
32 #'tesseract-data-eng'
33 #'tesseract-data-chi_tra'
34 'tesseract-data-osd'
35 'wqy-microhei'
36 'python-pillow'
37 'gst-plugins-base'
38 'qt6-declarative'
39 'qt6-multimedia'
40 'python-pyqt5'
41)
42source=(
43 "${pkgname}-${pkgver}.deb::http://codown.youdao.com/cidian/linux/${pkgname}_${pkgver}-ubuntu-amd64.deb"
44 "License.html::https://c.youdao.com/dict/law/youdaofanyi_pc_service.html"
45 "${pkgname}.sh"
46)
47sha256sums=('e56f248c3caf7d0bff9f4f18780d9b258612b490c1c0f332335b8d15471e0dd2'
48 'a373604e2f43ced0f4e37f7adbbb8719f11b2daf49aec96e1f6d9348027e882c'
49 '105c5d6e590ff22fea3f3ed299431078c324b91dff71016e1c2815ba3d54d4d4')
50prepare() {
51 sed -i -e "
52 s/@appname@/${pkgname}/g
53 s/@runname@/main.py/g
54 " "${srcdir}/${pkgname}.sh"
55 bsdtar -xf "${srcdir}/data."*
56 sed -i '290s/self.setX(x)/self.setX(int(x))/g;291s/self.setY(y)/self.setY(int(y))/g' "${srcdir}/usr/share/${pkgname}/app/plugins/youdao/window.py"
57 sed -i '644s/self.move(x, y)/self.move(int(x), int(y))/g' "${srcdir}/usr/share/${pkgname}/dae/window.py"
58 sed -i 's/getargspec/getfullargspec/g' "${srcdir}/usr/share/${pkgname}/app/plugins/${pkgname%-dict}/pyquery/pyquery.py"
59 sed -i 's/import imp/import importlib/g;/imp.load_source/d' "${srcdir}/usr/share/${pkgname}/dae/plugins.py"
60 sed -i -e "
61 53i\ spec = importlib.util.spec_from_file_location(plugin_name, os.path.join(path, '__init__.py'))
62 53i\ plugin = importlib.util.module_from_spec(spec)
63 53i\ spec.loader.exec_module(plugin)
64 " "${srcdir}/usr/share/${pkgname}/dae/plugins.py"
65 sed -i "s/usr\/share/usr\/lib/g" "${srcdir}/usr/share/dbus-1/services/com.youdao.backend.service"
66 sed -i "37s/ print/ print/" "${srcdir}/usr/share/${pkgname}/${pkgname}-backend.py"
67 sed -i -e "
68 /if not wmHelper.hasComposite:/d
69 s/\ width = 0/\ width = 0/g
70 " "${srcdir}/usr/share/${pkgname}/dae/shadowwindow.py"
71}
72package(){
73 install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
74 install -Dm755 -d "${pkgdir}/usr/lib"
75 cp -Pr --no-preserve=ownership "${srcdir}/usr/share/${pkgname}" "${pkgdir}/usr/lib"
76 install -Dm644 "${srcdir}/etc/xdg/autostart/${pkgname}-autostart.desktop" -t "${pkgdir}/etc/xdg/autostart"
77 install -Dm644 "${srcdir}/usr/share/applications/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
78 install -Dm644 "${srcdir}/usr/share/dbus-1/services/com.youdao.backend.service" -t "${pkgdir}/usr/share/dbus-1/services"
79 _icon_sizes=(16x16 24x24 48x48 64x64 96x96 scalable)
80 for _icons in "${_icon_sizes[@]}";do
81 install -Dm644 "${srcdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname}".* \
82 -t "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps"
83 done
84 install -Dm644 "${srcdir}/License.html" -t "${pkgdir}/usr/share/licenses/${pkgname}"
85}
86

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 LOW 2
2026-08-02 00:16:08 LOW 2
2026-08-01 00:11:18 LOW 2
2026-07-31 00:14:10 LOW 2
2026-07-30 00:17:23 LOW 2
2026-07-29 00:25:53 LOW 2
2026-07-28 00:07:28 LOW 2
2026-07-27 00:24:32 LOW 2
2026-07-26 00:07:32 LOW 2
2026-07-25 00:13:44 LOW 2
2026-07-24 00:02:28 LOW 2
2026-07-23 00:14:47 LOW 2
2026-07-22 00:29:32 LOW 2
2026-07-21 00:24:15 LOW 2
2026-07-20 00:19:49 LOW 2
2026-07-19 00:17:08 LOW 2
2026-07-18 00:14:48 LOW 2
2026-07-17 00:06:16 LOW 2
2026-07-16 00:05:41 LOW 2
2026-07-15 00:09:25 LOW 2

Report a package

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

0 / 4000
Your suggestion