simpletodo-git

maintainer zxp19821005 · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The package installs dependencies via yarn during prepare(), but it does so from the project's own source tree after applying legitimate patches; the use of a Chinese mirror is a regional optimization, not malicious; the added dev dependency is part of the build process and not an undeclared external payload execution.

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 installs dependencies via yarn during prepare(), but it does so from the project's own source tree after applying legitimate patches; the use of a Chinese mirror is a regional optimization, not malicious; the added dev dependency is part of the build process and not an undeclared external payload execution.

1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM npm/yarn/pnpm install of an undeclared external package npm_install_external

Runs `npm/yarn/pnpm install <package>` for a package not in source=(), pulling unpinned, unreviewed code at build time. Severity downgraded: the package declares/looks like a Node.js consumer, where build-time installs are expected.

  • PKGBUILD:90 NODE_ENV=development yarn add -D @electron-forge/plugin-local-electron

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=simpletodo-git
3_pkgname=Simpletodo
4pkgver=1.3.0.r5.g759bf10
5_electronversion=27
6_nodeversion=20
7pkgrel=1
8pkgdesc="A Simpletodo app. Redefine productivity. Keep tasks in check, move completed items, and organize projects—all while staying focused on what’s next.(Use system-wide electron)"
9arch=('any')
10url="https://simpletodo.app/"
11_ghurl="https://github.com/Simpletodo-app/simpletodo.app"
12license=('MIT')
13provides=("${pkgname%-git}=${pkgver%.r*}")
14conflicts=("${pkgname%-git}")
15depends=(
16 "electron${_electronversion}"
17 'nodejs'
18)
19makedepends=(
20 'npm'
21 'nvm'
22 'git'
23 'curl'
24 'gendesk'
25 'yarn'
26)
27options=(
28 '!strip'
29 '!emptydirs'
30)
31source=(
32 "${pkgname//-/.}::git+${_ghurl}"
33 "${pkgname%-git}.sh"
34)
35sha256sums=('SKIP'
36 '291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980')
37pkgver() {
38 cd "${srcdir}/${pkgname//-/.}"
39 set -o pipefail
40 git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//g' ||
41 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
42}
43_ensure_local_nvm() {
44 local NVM_DIR="${srcdir}/.nvm"
45 source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
46 nvm install "${_nodeversion}"
47 nvm use "${_nodeversion}"
48}
49prepare() {
50 cd "${srcdir}/${pkgname//-/.}"
51 sed -i -e "
52 s/@electronversion@/${_electronversion}/g
53 s/@appname@/${pkgname%-git}/g
54 s/@runname@/app/g
55 s/@cfgdirname@/${_pkgname}/g
56 s/@options@//g
57 " "${srcdir}/${pkgname%-git}.sh"
58 _ensure_local_nvm
59 gendesk -q -f -n \
60 --pkgname="${pkgname%-git}" \
61 --pkgdesc="${pkgdesc}" \
62 --categories="Utility" \
63 --name="${_pkgname}" \
64 --exec="${pkgname%-git} %U"
65 export ELECTRON_SKIP_BINARY_DOWNLOAD=1
66 export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
67 HOME="${srcdir}/.electron-gyp"
68 mkdir -p "${srcdir}/.electron-gyp"
69 if [[ "$(curl -s ipinfo.io/country)" == *"CN"* ]]; then
70 {
71 echo -e '\n'
72 echo 'registry "https://registry.npmmirror.com"'
73 echo 'electron_mirror "https://registry.npmmirror.com/-/binary/electron/"'
74 echo 'electron_builder_binaries_mirror "https://registry.npmmirror.com/-/binary/electron-builder-binaries/"'
75 echo "cacheFolder "${srcdir}"/.yarn/cache"
76 echo "pluginsFolder "${srcdir}"/.yarn/plugins"
77 echo "globalFolder "${srcdir}"/.yarn/global"
78 echo 'useHardlinks true'
79 #echo 'buildFromSource true'
80 echo 'linkWorkspacePackages true'
81 echo 'fetchRetries 3'
82 echo 'fetchRetryTimeout 10000'
83 echo 'networkConcurrency 10'
84 } >> .yarnrc
85 find ./ -type f -name "yarn.lock" -exec sed -i "s/registry.yarnpkg.com/registry.npmmirror.com/g" {} +
86 fi
87 sed -i "s/\/app\/images/.\/src\/app\/images/g" src/main.ts
88 sed -i "s/\"electron\": \"[^\"]*\"/\"electron\": \"${SYSTEM_ELECTRON_VERSION}\"/g" package.json
89 NODE_ENV=development yarn install --cache-folder "${srcdir}/.yarn_cache"
90 NODE_ENV=development yarn add -D @electron-forge/plugin-local-electron
91}
92build() {
93 cd "${srcdir}/${pkgname//-/.}"
94 local electronDist="/usr/lib/electron${_electronversion}"
95 sed -i "/^[[:space:]]*plugins:[[:space:]]*\[.*\$/a\\
96 {\\
97 name: \"@electron-forge/plugin-local-electron\",\\
98 config: {\\
99 electronPath: \'${electronDist}\',\\
100 }\\
101 }," forge.config.*
102 yarn run package
103}
104package() {
105 install -Dm755 "${srcdir}/${pkgname%-git}.sh" "${pkgdir}/usr/bin/${pkgname%-git}"
106 install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-git}"
107 cp -Pr --no-preserve=ownership "${srcdir}/${pkgname//-/.}/out/${_pkgname}-linux-"*/resources/app "${pkgdir}/usr/lib/${pkgname%-git}"
108 _icon_sizes=(16x16 24x24 32x32 48x48 64x64 128x128 256x256 1024x1024)
109 for _icons in "${_icon_sizes[@]}";do
110 install -Dm644 "${srcdir}/${pkgname//-/.}/src/app/images/appicons/icons/png/${_icons}.png" \
111 "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-git}.png"
112 done
113 install -Dm644 "${srcdir}/${pkgname//-/.}/${pkgname%-git}.desktop" -t "${pkgdir}/usr/share/applications"
114 install -Dm644 "${srcdir}/${pkgname//-/.}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
115}

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