lidarr
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
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)
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# Maintainer: txtsd <aur.archlinux@ihavea.quest>
# Maintainer: Donald Webster <fryfrog@gmail.com>
# Contributor: Sven Frenzel <aur@frenzel.dk>
# Helpful URL: https://services.lidarr.audio/v1/update/master?version=0.0.0.0&os=linux&runtime=netcore&arch=x64&includeMajorVersion=true
pkgname=lidarr
_pkgname=Lidarr
pkgver=3.1.0.4875
pkgrel=2
pkgdesc='Music collection manager for newsgroup and torrent users.'
arch=(x86_64 aarch64 armv7h)
url='https://lidarr.audio'
license=('GPL-3.0-or-later')
groups=(servarr)
depends=(
aspnet-runtime-8.0
gcc-libs
glibc
sqlite
)
makedepends=(dotnet-sdk-8.0 yarn)
optdepends=(
'postgresql: postgresql database'
'sabnzbd: usenet downloader'
'nzbget: usenet downloader'
'qbittorrent: torrent downloader'
'deluge: torrent downloader'
'rtorrent: torrent downloader'
'nodejs-flood: torrent downloader'
'vuze: torrent downloader'
'aria2: torrent downloader'
'transmission-cli: torrent downloader (CLI and daemon)'
'transmission-gtk: torrent downloader (GTK+)'
'transmission-qt: torrent downloader (Qt)'
'jackett: torrent indexer proxy'
'nzbhydra2: torznab and usenet indexer proxy'
'prowlarr: torrent and usenet indexer proxy'
'autobrr: irc, torrent and usenet indexer proxy'
)
install=lidarr.install
source=(
"${pkgname}-${pkgver}.tar.gz::https://github.com/Lidarr/Lidarr/archive/refs/tags/v${pkgver}.tar.gz"
lidarr.service
lidarr.sysusers
lidarr.tmpfiles
package_info
)
sha256sums=('91bd0a5db0db45ac8cdb8a3b74696cc6f37f0e31aaf24acd5d43aa41e466e87b'
'48f4cc5040b1a51e624f5be4977078b77bf7f87b9c1fb7fa34e844da4c831401'
'85098d47734e8087480f8a29eafec50faa453487221ef01173888155d2b06e42'
'd71e37213ac65722e42f6f2c5772d4515c2d28a77b9f7608dc05c787d86ebaa5'
'19435dff2251782714875af95a38d8491cee6c178e8f32e3c3b6e566b3edc931')
case ${CARCH} in
x86_64) _CARCH='x64' ;;
aarch64) _CARCH='arm64' ;;
armv7h) _CARCH='arm' ;;
esac
_framework='net8.0'
_runtime="linux-${_CARCH}"
_output="_output"
_artifacts="${_output}/${_framework}/${_runtime}/publish"
_branch='master'
prepare() {
cd "${_pkgname}-${pkgver}"
# Fix CVE-2026-41319
sed 's/MailKit" Version="4\.14\.0"/MailKit" Version="4\.16\.0"/' -i src/NzbDrone.Core/Lidarr.Core.csproj
# Remove upstream dotnet version
rm global.json
export DOTNET_CLI_TELEMETRY_OPTOUT=1
export DOTNET_NOLOGO=1
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
dotnet new globaljson --sdk-version 8.0.112 --force
# Prepare backend
dotnet restore "src/${_pkgname}.sln" \
--runtime "${_runtime}" \
--locked-mode
# Prepare frontend
yarn install --frozen-lockfile --network-timeout 120000
}
build() {
cd "${_pkgname}-${pkgver}"
# Build backend
export DOTNET_CLI_TELEMETRY_OPTOUT=1
export DOTNET_NOLOGO=1
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
dotnet build "src/${_pkgname}.sln" \
--framework "${_framework}" \
--runtime "${_runtime}" \
--no-self-contained \
--no-restore \
--configuration Release \
-p:Platform=Posix \
-p:AssemblyVersion=${pkgver} \
-p:AssemblyConfiguration=${_branch} \
-p:RuntimeIdentifiers=${_runtime} \
-t:PublishAllRids \
&& dotnet build-server shutdown # Build servers do not terminate automatically
# Build frontend
yarn run build --env production
}
package() {
cd "${_pkgname}-${pkgver}"
install -dm755 "${pkgdir}/usr/lib/lidarr/bin/UI"
# Remove Service Helpers, Update, and Windows files
rm "${_artifacts}/ServiceInstall"*
rm "${_artifacts}/ServiceUninstall"*
rm "${_artifacts}/Lidarr.Windows."*
# Copy backend
cp -dr "${_artifacts}/"* "${pkgdir}/usr/lib/lidarr/bin"
# Copy frontend
cp -dr "${_output}/UI/"* "${pkgdir}/usr/lib/lidarr/bin/UI"
# License
install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}"
# Disable built in updater.
cd "${srcdir}"
install -Dm644 package_info "${pkgdir}/usr/lib/lidarr"
echo "PackageVersion=${pkgver}-${pkgrel}" >> "${pkgdir}/usr/lib/lidarr/package_info"
# Systemd
install -Dm644 lidarr.service "${pkgdir}/usr/lib/systemd/system/lidarr.service"
install -Dm644 lidarr.sysusers "${pkgdir}/usr/lib/sysusers.d/lidarr.conf"
install -Dm644 lidarr.tmpfiles "${pkgdir}/usr/lib/tmpfiles.d/lidarr.conf"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |