sonarr-develop
maintainer txtsd
· 2 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The flagged 'npm/yarn install' occurs during prepare() but uses --frozen-lockfile, ensuring only declared dependencies from the project's own lockfile are installed; this is a standard, safe build practice for the frontend and does not introduce external or unreviewed code.
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 90%): The flagged 'npm/yarn install' occurs during prepare() but uses --frozen-lockfile, ensuring only declared dependencies from the project's own lockfile are installed; this is a standard, safe build practice for the frontend and does not introduce external or unreviewed code.
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: Daniel Egeberg <daniel.egeberg@gmail.com>
4
# Contributor: Justin Dray <justin@dray.be>
5
# Helpful URL: https://services.sonarr.tv/v1/releases
6
7
pkgname=sonarr-develop
8
_pkgname=Sonarr
9
pkgver=4.0.19.2995
10
pkgrel=1
11
pkgdesc='Smart PVR for newsgroup and torrent users (develop branch)'
12
arch=(x86_64 aarch64 armv7h)
13
url='https://sonarr.tv'
14
license=('GPL-3.0-or-later')
15
groups=(servarr-develop)
16
depends=(
17
aspnet-runtime-6.0
18
gcc-libs
19
glibc
20
sqlite
21
)
22
makedepends=(dotnet-sdk-6.0 yarn)
23
optdepends=(
24
'postgresql: postgresql database'
25
'sabnzbd: usenet downloader'
26
'nzbget: usenet downloader'
27
'qbittorrent: torrent downloader'
28
'deluge: torrent downloader'
29
'rtorrent: torrent downloader'
30
'nodejs-flood: torrent downloader'
31
'vuze: torrent downloader'
32
'aria2: torrent downloader'
33
'transmission-cli: torrent downloader (CLI and daemon)'
34
'transmission-gtk: torrent downloader (GTK+)'
35
'transmission-qt: torrent downloader (Qt)'
36
'jackett: torrent indexer proxy'
37
'nzbhydra2: torznab and usenet indexer proxy'
38
'prowlarr: torrent and usenet indexer proxy'
39
'autobrr: irc, torrent and usenet indexer proxy'
40
)
41
provides=(sonarr)
42
conflicts=(sonarr)
43
install=sonarr.install
44
source=(
45
"${pkgname}-${pkgver}.tar.gz::https://github.com/Sonarr/Sonarr/archive/refs/tags/v${pkgver}.tar.gz"
46
package_info
47
sonarr.service
48
sonarr.sysusers
49
sonarr.tmpfiles
50
)
51
sha256sums=('610c50ac5ccd067124d8630253a1b81a034278cf05dc4ff6f9f5003b68290005'
52
'a6b37e75143a309b1d8c163c3f90f7f0275fd730015c3f74e3ad27c278b1ae90'
53
'a5fc162aeafb2c6322176db736a503047a39f2740eea4dead05438ed47187fbd'
54
'00141d4cbf34daa6d91b26179d4847ec970e2767382e18fdf9af2ec84a0ff43e'
55
'd6b18a83dd9c213470d984f71ddcefcd64d12bb87f68225cc4ebf5fa4a831703')
56
57
case ${CARCH} in
58
x86_64) _CARCH='x64' ;;
59
aarch64) _CARCH='arm64' ;;
60
armv7h) _CARCH='arm' ;;
61
esac
62
63
_framework='net6.0'
64
_runtime="linux-${_CARCH}"
65
_output='_output'
66
_artifacts="${_output}/${_framework}/${_runtime}/publish"
67
_branch='develop'
68
69
prepare() {
70
cd "${_pkgname}-${pkgver}"
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 6.0.113 --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/sonarr/bin/UI"
117
118
# Remove Service Helpers, Update, and Windows files
119
rm "${_artifacts}/ServiceInstall"*
120
rm "${_artifacts}/ServiceUninstall"*
121
rm "${_artifacts}/Sonarr.Windows."*
122
rm -rf "${_output}/Sonarr.Update"
123
124
# Copy backend
125
cp -dr "${_artifacts}/"* "${pkgdir}/usr/lib/sonarr/bin"
126
# Copy frontend
127
cp -dr "${_output}/UI/"* "${pkgdir}/usr/lib/sonarr/bin/UI"
128
129
# Set executable permissions
130
chmod 755 "${pkgdir}/usr/lib/sonarr/bin/ffprobe"
131
132
# License
133
install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}"
134
135
# Disable built in updater.
136
cd "${srcdir}"
137
install -Dm644 package_info "${pkgdir}/usr/lib/sonarr"
138
echo "PackageVersion=${pkgver}-${pkgrel}" >> "${pkgdir}/usr/lib/sonarr/package_info"
139
140
# Systemd
141
install -Dm644 sonarr.service "${pkgdir}/usr/lib/systemd/system/sonarr.service"
142
install -Dm644 sonarr.sysusers "${pkgdir}/usr/lib/sysusers.d/sonarr.conf"
143
install -Dm644 sonarr.tmpfiles "${pkgdir}/usr/lib/tmpfiles.d/sonarr.conf"
144
}
145
Changes since previous scan
--- PKGBUILD @ 2026-07-27 00:24+++ PKGBUILD @ 2026-08-03 00:08@@ -6,7 +6,7 @@ pkgname=sonarr-develop _pkgname=Sonarr-pkgver=4.0.19.2991+pkgver=4.0.19.2995 pkgrel=1 pkgdesc='Smart PVR for newsgroup and torrent users (develop branch)' arch=(x86_64 aarch64 armv7h)@@ -48,7 +48,7 @@ sonarr.sysusers sonarr.tmpfiles )-sha256sums=('3383dd7bde3cc3b3323b0b6d557d3d8f577ffe162f44ffaf471106edf7deefed'+sha256sums=('610c50ac5ccd067124d8630253a1b81a034278cf05dc4ff6f9f5003b68290005' 'a6b37e75143a309b1d8c163c3f90f7f0275fd730015c3f74e3ad27c278b1ae90' 'a5fc162aeafb2c6322176db736a503047a39f2740eea4dead05438ed47187fbd' '00141d4cbf34daa6d91b26179d4847ec970e2767382e18fdf9af2ec84a0ff43e'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 05:34:42 | MEDIUM | 1 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 23:31:22 | MEDIUM | 1 |
| 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 |