lidarr-develop
maintainer txtsd
· 1 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The flagged 'npm/yarn install of an undeclared external package' occurs during prepare() via 'yarn install --frozen-lockfile', but this is part of building the frontend from the project's own source (Lidarr) and uses a locked dependency tree; it does not introduce undeclared remote code execution or supply-chain risks.
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-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The flagged 'npm/yarn install of an undeclared external package' occurs during prepare() via 'yarn install --frozen-lockfile', but this is part of building the frontend from the project's own source (Lidarr) and uses a locked dependency tree; it does not introduce undeclared remote code execution or supply-chain risks.
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:84
yarn install --frozen-lockfile --network-timeout 120000
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: txtsd <aur.archlinux@ihavea.quest>
2
# Maintainer: Donald Webster <fryfrog@gmail.com>
3
# Helpful URL: https://services.lidarr.audio/v1/update/develop?version=0.0.0.0&os=linux&runtime=netcore&arch=x64&includeMajorVersion=true
4
5
pkgname=lidarr-develop
6
_pkgname=Lidarr
7
pkgver=3.1.3.4975
8
pkgrel=1
9
pkgdesc='Music collection manager for newsgroup and torrent users (develop branch)'
10
arch=(x86_64 aarch64 armv7h)
11
url='https://lidarr.audio'
12
license=('GPL-3.0-or-later')
13
groups=(servarr-develop)
14
depends=(
15
aspnet-runtime-8.0
16
gcc-libs
17
glibc
18
sqlite
19
)
20
makedepends=(dotnet-sdk-8.0 yarn)
21
optdepends=(
22
'postgresql: postgresql database'
23
'sabnzbd: usenet downloader'
24
'nzbget: usenet downloader'
25
'qbittorrent: torrent downloader'
26
'deluge: torrent downloader'
27
'rtorrent: torrent downloader'
28
'nodejs-flood: torrent downloader'
29
'vuze: torrent downloader'
30
'aria2: torrent downloader'
31
'transmission-cli: torrent downloader (CLI and daemon)'
32
'transmission-gtk: torrent downloader (GTK+)'
33
'transmission-qt: torrent downloader (Qt)'
34
'jackett: torrent indexer proxy'
35
'nzbhydra2: torznab and usenet indexer proxy'
36
'prowlarr: torrent and usenet indexer proxy'
37
'autobrr: irc, torrent and usenet indexer proxy'
38
)
39
provides=(lidarr)
40
conflicts=(lidarr)
41
install=lidarr.install
42
source=(
43
"${pkgname}-${pkgver}.tar.gz::https://github.com/Lidarr/Lidarr/archive/refs/tags/v${pkgver}.tar.gz"
44
lidarr.service
45
lidarr.sysusers
46
lidarr.tmpfiles
47
package_info
48
)
49
sha256sums=('8c9b5eeb71dcb427d756256e927f5e8f8509cc77a374e460edb0febdcc3060d4'
50
'48f4cc5040b1a51e624f5be4977078b77bf7f87b9c1fb7fa34e844da4c831401'
51
'85098d47734e8087480f8a29eafec50faa453487221ef01173888155d2b06e42'
52
'd71e37213ac65722e42f6f2c5772d4515c2d28a77b9f7608dc05c787d86ebaa5'
53
'ea7786c48dce48db0ecfe2feace923d122981f6af86a01985c3662a76153a620')
54
55
case ${CARCH} in
56
x86_64) _CARCH='x64' ;;
57
aarch64) _CARCH='arm64' ;;
58
armv7h) _CARCH='arm' ;;
59
esac
60
61
_framework='net8.0'
62
_runtime="linux-${_CARCH}"
63
_output="_output"
64
_artifacts="${_output}/${_framework}/${_runtime}/publish"
65
_branch='develop'
66
67
prepare() {
68
cd "${_pkgname}-${pkgver}"
69
70
# Remove upstream dotnet version
71
rm global.json
72
73
export DOTNET_CLI_TELEMETRY_OPTOUT=1
74
export DOTNET_NOLOGO=1
75
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
76
dotnet new globaljson --sdk-version 8.0.127 --roll-forward latestFeature
77
78
# Prepare backend
79
dotnet restore "src/${_pkgname}.sln" \
80
--runtime "${_runtime}" \
81
--locked-mode
82
83
# Prepare frontend
84
yarn install --frozen-lockfile --network-timeout 120000
85
}
86
87
build() {
88
cd "${_pkgname}-${pkgver}"
89
90
# Build backend
91
export DOTNET_CLI_TELEMETRY_OPTOUT=1
92
export DOTNET_NOLOGO=1
93
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
94
dotnet build src/${_pkgname}.sln \
95
--framework ${_framework} \
96
--runtime ${_runtime} \
97
--no-self-contained \
98
--no-restore \
99
--configuration Release \
100
-p:Platform=Posix \
101
-p:AssemblyVersion=${pkgver} \
102
-p:AssemblyConfiguration=${_branch} \
103
-p:RuntimeIdentifiers=${_runtime} \
104
-t:PublishAllRids \
105
&& dotnet build-server shutdown # Build servers do not terminate automatically
106
107
# Build frontend
108
yarn run build --env production
109
}
110
111
package() {
112
cd "${_pkgname}-${pkgver}"
113
114
install -dm755 "${pkgdir}/usr/lib/lidarr/bin/UI"
115
116
# Remove Service Helpers, Update, and Windows files
117
rm "${_artifacts}/ServiceInstall"*
118
rm "${_artifacts}/ServiceUninstall"*
119
rm "${_artifacts}/Lidarr.Windows."*
120
121
# Copy backend
122
cp -dr "${_artifacts}/"* "${pkgdir}/usr/lib/lidarr/bin"
123
# Copy frontend
124
cp -dr "${_output}/UI/"* "${pkgdir}/usr/lib/lidarr/bin/UI"
125
126
# License
127
install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}"
128
129
# Disable built in updater.
130
cd "${srcdir}"
131
install -Dm644 package_info "${pkgdir}/usr/lib/lidarr"
132
echo "PackageVersion=${pkgver}-${pkgrel}" >> "${pkgdir}/usr/lib/lidarr/package_info"
133
134
# Systemd
135
install -Dm644 lidarr.service "${pkgdir}/usr/lib/systemd/system/lidarr.service"
136
install -Dm644 lidarr.sysusers "${pkgdir}/usr/lib/sysusers.d/lidarr.conf"
137
install -Dm644 lidarr.tmpfiles "${pkgdir}/usr/lib/tmpfiles.d/lidarr.conf"
138
}
139
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 |