titan-rcs-git
maintainer zxp19821005
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The npm install runs in a controlled build environment, uses a project-owned source (git repo), and installs only declared dev dependencies; no untrusted remote code execution or supply-chain risks are present.
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 npm install runs in a controlled build environment, uses a project-owned source (git repo), and installs only declared dev dependencies; no untrusted remote code execution or supply-chain risks are present.
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:78
NODE_ENV=development npm add -D @rollup/rollup-linux-x64-gnu @swc/core
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2
_appname=titan
3
pkgname="${_appname}-rcs-git"
4
_pkgname=Titan
5
pkgver=2.0.4.r0.gdf53c7e
6
_electronversion=33
7
_nodeversion=22
8
pkgrel=1
9
pkgdesc="Streamlin your workflow in Revision Control Systems (RCS) like Subversion (SVN).(Use system-wide electron)"
10
arch=('any')
11
url="https://github.com/ArrushC/Titan"
12
license=('LicenseRef-unknown')
13
conflicts=("${pkgname%-git}")
14
provides=("${pkgname%-git}=${pkgver%.r*}")
15
depends=(
16
"electron${_electronversion}"
17
)
18
makedepends=(
19
'gendesk'
20
'npm'
21
'nvm'
22
'git'
23
'curl'
24
)
25
source=(
26
"${pkgname%-git}.git::git+${url}.git"
27
"${pkgname%-git}.sh"
28
)
29
sha256sums=('SKIP'
30
'291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980')
31
pkgver() {
32
cd "${srcdir}/${pkgname%-git}.git"
33
set -o pipefail
34
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//g' ||
35
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
36
}
37
_ensure_local_nvm() {
38
local NVM_DIR="${srcdir}/.nvm"
39
source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
40
nvm install "${_nodeversion}"
41
nvm use "${_nodeversion}"
42
}
43
prepare() {
44
cd "${srcdir}/${pkgname%-git}.git"
45
sed -i -e "
46
s/@electronversion@/${_electronversion}/g
47
s/@appname@/${pkgname%-git}/g
48
s/@runname@/app.asar/g
49
s/@cfgdirname@/${_appname}/g
50
s/@options@/env ELECTRON_OZONE_PLATFORM_HINT=auto/g
51
" "${srcdir}/${pkgname%-git}.sh"
52
_ensure_local_nvm
53
gendesk -q -f -n \
54
--pkgname="${pkgname%-git}" \
55
--pkgdesc="${pkgdesc}" \
56
--categories="Utility" \
57
--name="${pkgname%-git}" \
58
--exec="${pkgname%-git} %U"
59
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
60
export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
61
HOME="${srcdir}/.electron-gyp"
62
{
63
echo -e '\n'
64
#echo 'build_from_source=true'
65
echo "cache=${srcdir}/.npm_cache"
66
echo "maxsockets=10"
67
} >> .npmrc
68
if [[ "$(curl -s ipinfo.io/country)" == *"CN"* ]]; then
69
{
70
echo 'registry=https://registry.npmmirror.com'
71
echo 'electron_mirror=https://registry.npmmirror.com/-/binary/electron/'
72
echo 'electron_builder_binaries_mirror=https://registry.npmmirror.com/-/binary/electron-builder-binaries/'
73
} >> .npmrc
74
find ./ -type f -name "package-lock.json" -exec sed -i "s/registry.npmjs.org/registry.npmmirror.com/g" {} +
75
fi
76
sed -i "s/\"electron\": \"[^\"]*\"/\"electron\": \"${SYSTEM_ELECTRON_VERSION}\"/g" package.json
77
NODE_ENV=development npm install --legacy-peer-deps
78
NODE_ENV=development npm add -D @rollup/rollup-linux-x64-gnu @swc/core
79
}
80
build() {
81
cd "${srcdir}/${pkgname%-git}.git"
82
local electronDist="/usr/lib/electron${_electronversion}"
83
NODE_ENV=production npm run client:build
84
NODE_ENV=production npm exec -c "electron-builder --linux dir -c.electronDist=${electronDist}"
85
}
86
package() {
87
install -Dm755 "${srcdir}/${pkgname%-git}.sh" "${pkgdir}/usr/bin/${pkgname%-git}"
88
install -Dm644 "${srcdir}/${pkgname%-git}.git/release/linux-"*/resources/app.asar -t "${pkgdir}/usr/lib/${pkgname%-git}"
89
install -Dm644 "${srcdir}/${pkgname%-git}.git/${pkgname%-git}.desktop" -t "${pkgdir}/usr/share/applications"
90
install -Dm644 "${srcdir}/${pkgname%-git}.git/icons/${_pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-git}.png"
91
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 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 |