eusoft-ting-en-bin

MEDIUM
maintainer zxp19821005 0 votes scanned 2026-11-01 00:21:48.120785
View on AUR
Why flagged

The package downloads a prebuilt .deb binary from a non-standard host (static.frdic.com) which is not a well-known code hosting platform, posing a supply-chain risk if the host is compromised or the download is intercepted.

Triggered rules

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:21 "${pkgname%-bin}-${pkgver}.deb::https://static.frdic.com/pkg/${_appname}/${_appname}.deb?v=${pkgver}"
Medium AI review llm_review

An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is MEDIUM (confidence 95%): The package downloads a prebuilt .deb binary from a non-standard host (static.frdic.com) which is not a well-known code hosting platform, posing a supply-chain risk if the host is compromised or the download is intercepted.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2_appname=ting_en
3pkgname="eusoft-${_appname//_/-}-bin"
4_zhname='每日英语听力'
5pkgver=26.9.1
6_electronversion=22
7pkgrel=1
8pkgdesc="Listening statistics, note synchronization, and voice highlighting follow-up make learning English easy and enjoyable for you.听力统计、笔记同步、语音高亮跟随,让您轻松愉快学英语"
9arch=('x86_64')
10url="http://dict.eudic.net/ting"
11license=('LicenseRef-custom')
12conflicts=(
13 "${pkgname%-bin}"
14 "eudic-${_appname}"
15)
16depends=(
17 "electron${_electronversion}"
18 'ffmpeg'
19)
20source=(
21 "${pkgname%-bin}-${pkgver}.deb::https://static.frdic.com/pkg/${_appname}/${_appname}.deb?v=${pkgver}"
22 "LICENSE.html"
23 "${pkgname%-bin}.sh"
24)
25sha256sums=('bf24f5f66d2976a720b4db7a5471a3c330449f694ab1f8e6eb3060da9edac76c'
26 '17651cf7ae49b0372b6b6812d8b3b066203892c9fbe0b04b25efec0ab038c12b'
27 'a774c2f54fbbeeaac3cefc0f7250796d30c86d27f0fd40b7eaf9c0fdb021623d')
28_get_app_dir() {
29 find "${srcdir}" -type d -name "node_modules" -prune -o -type f -name "resources.pak" -print0 | xargs -0 dirname | head -n 1
30}
31_check_electron_version() {
32 echo "Verifying Electron version..."
33 local _main_exe=$(find "$(_get_app_dir)" -maxdepth 1 -type f -executable -printf '%s %p\n' | sort -nr | head -1 | cut -d' ' -f2-)
34 [[ -z "${_main_exe}" ]] && echo -e "\033[1;33mNote: Could not find Electron binary.\033[0m" && return
35 local _elec_ver=$(strings "${_main_exe}" | grep -oP 'Electron/\K[0-9]+' | head -1)
36 [[ -z "${_elec_ver}" ]] && echo -e "\033[1;33mNote: Could not determine Electron version.\033[0m" && return
37 [[ "${_elec_ver}" != "${_electronversion}" ]] &&
38 echo -e "\033[1;31mWarning: Electron version mismatch! Detected: ${_elec_ver}, Expected: ${_electronversion}\033[0m" ||
39 echo -e "Electron version verified: \033[1;31m${_elec_ver}\033[0m"
40}
41prepare() {
42 sed -i -e "
43 s/@electronversion@/${_electronversion}/g
44 s/@appname@/${pkgname%-bin}/g
45 s/@runname@/app.asar/g
46 s/@cfgdirname@/${_appname}/g
47 " "${srcdir}/${pkgname%-bin}.sh"
48 bsdtar -xf "${srcdir}/data."*
49 _check_electron_version
50 sed -i -e"
51 s/\"\/opt\/${_zhname}\/${_appname}\"/${pkgname%-bin}/g
52 s/Icon=${_appname}/Icon=${pkgname%-bin}/g
53 " -i "${srcdir}/usr/share/applications/${_appname}.desktop"
54 ln -sf "/usr/bin/ffmpeg" "${srcdir}/opt/${_zhname}/resources/app.asar.unpacked/ffmpeg-linux-x64"
55 ln -sf "/usr/bin/ffmpeg" "${srcdir}/opt/${_zhname}/resources/ffmpeg-linux-x64"
56}
57package() {
58 install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
59 install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}"
60 local _app_dir=$(_get_app_dir)
61 cp -a "${_app_dir}/resources/." "${pkgdir}/usr/lib/${pkgname%-bin}/"
62 install -Dm644 "${srcdir}/usr/share/applications/${_appname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
63 find "${srcdir}" -type f \( -name "*.png" -o -name "*.svg" \) -path "*share/icons/*" | while read -r _i; do
64 _extension="${_i##*.}"
65 _icon_path="${_i#*share/icons/}"
66 _target_dir="/usr/share/icons/$(dirname "${_icon_path}")"
67 install -Dm644 "${_i}" "${pkgdir}${_target_dir}/${pkgname%-bin}.${_extension}"
68 done
69 install -Dm644 "${srcdir}/LICENSE.html" -t "${pkgdir}/usr/share/licenses/${pkgname}"
70}
71

Scan history

Scanned at (UTC)SeverityRules
2026-11-01 00:21:48 Medium 2
2026-10-31 00:07:41 Medium 2
2026-10-30 00:29:30 Medium 2
2026-10-29 00:13:55 Medium 2
2026-10-28 00:06:54 Medium 2
2026-10-27 00:23:28 Medium 2
2026-10-26 00:12:40 Medium 2
2026-10-25 00:20:48 Medium 2
2026-10-24 00:14:55 Medium 2
2026-10-23 00:02:19 Medium 2
2026-10-22 00:13:10 Medium 2
2026-10-21 00:12:50 Medium 2
2026-10-20 00:10:31 Medium 2
2026-10-19 00:03:55 Medium 2
2026-10-18 00:06:55 Medium 2
2026-10-17 00:21:55 Medium 2
2026-10-16 00:12:47 Medium 2
2026-10-15 00:28:05 Medium 2
2026-10-14 00:06:47 Medium 2
2026-10-13 00:23:45 Medium 2

Report a package

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

0 / 4000
Your suggestion