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