jlink-software-and-documentation
maintainer AlexisPolti
· 58 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads official JLink software from Segger's own domain (segger.com), which is the legitimate vendor; despite the static analyzer flag for a non-standard host, this is a normal and trusted source for the software, and the package installs only vendor-provided binaries and data without executing untrusted 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 95%): The package downloads official JLink software from Segger's own domain (segger.com), which is the legitimate vendor; despite the static analyzer flag for a non-standard host, this is a normal and trusted source for the software, and the package installs only vendor-provided binaries and data without executing untrusted code.
1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM
source=() URL on a non-standard host
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:13
source_x86_64=("JLink_Linux_${pkgver/./}_x86_64.tgz::https://www.segger.com/downloads/jlink/JLink_Linux_V${pkgver/./}_x86_64.tgz")
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Alexis Polti <ArchSegger at gmail dot com>
2
# Maintainer: pzl <alsoelp at gmail dot com>
3
4
pkgname=jlink-software-and-documentation
5
pkgver=9.64
6
pkgrel=2
7
epoch=65
8
pkgdesc="Segger JLink software & documentation pack for Linux"
9
arch=('i686' 'x86_64' 'armv7h' 'aarch64' )
10
license=('custom' 'GPLv2')
11
groups=('jlink')
12
depends=('glibc' 'libudev0-shim' 'patch')
13
source_x86_64=("JLink_Linux_${pkgver/./}_x86_64.tgz::https://www.segger.com/downloads/jlink/JLink_Linux_V${pkgver/./}_x86_64.tgz")
14
source_i686=("JLink_Linux_${pkgver/./}_i686.tgz::https://www.segger.com/downloads/jlink/JLink_Linux_V${pkgver/./}_i386.tgz")
15
source_armv7h=("JLink_Linux_${pkgver/./}_arm.tgz::https://www.segger.com/downloads/jlink/JLink_Linux_V${pkgver/./}_arm.tgz")
16
source_aarch64=("JLink_Linux_${pkgver/./}_arm64.tgz::https://www.segger.com/downloads/jlink/JLink_Linux_V${pkgver/./}_arm64.tgz")
17
source=("99-jlink.rules.patch" "99-jlink-cmsis-dap.rules" "JLink.svg")
18
desktops=(
19
"JFlashExe.desktop"
20
"JFlashLiteExe.desktop"
21
"JFlashSPI_CL.desktop"
22
"JFlashSPIExe.desktop"
23
"JLinkConfigExe.desktop"
24
"JLinkExe.desktop"
25
"JLinkGDBServer.desktop"
26
"JLinkGUIServerExe.desktop"
27
"JLinkLicenseManager.desktop"
28
"JLinkRegistration.desktop"
29
"JLinkRemoteServer.desktop"
30
"JLinkRTTClient.desktop"
31
"JLinkRTTLogger.desktop"
32
"JLinkRTTViewer.desktop"
33
"JLinkSWOViewerExe.desktop"
34
"JMemExe.desktop"
35
"JRunExe.desktop"
36
"JTAGLoadExe.desktop"
37
)
38
source+=(${desktops[@]})
39
md5sums_x86_64=('e980f3ce4260763bc13ed695e28a88e3')
40
md5sums_i686=('4b4af036f65cf9ce053e6d3fd481c2de')
41
md5sums_aarch64=('e85d0da684116ab2a39fc2ff20da1fbe')
42
md5sums_armv7h=('4cabbd236cc2a5bbac6a755b00de464f')
43
44
md5sums=("a57d93b791581c1f36e4c672303bb85d"
45
"02c4941650a2bd345b03dd958313d4c5"
46
"83a136d31b296dd8f0e23bc21f9d8e19"
47
"7b0897db15242f4130f4d38ffe17a329"
48
"79491f5eaac8d23cc604e727b6c33878"
49
"4c6417b588f48f5440df3d3e7e1c68de"
50
"0cecd43927dd99917e8fae37f6d87790"
51
"a8e55eb7a5e8a8f1d353ae32a6e9be9c"
52
"9b084afb6622c02eda631100cf52804a"
53
"18436972bebea03c220e36f38911c128"
54
"658d2e7a802e6fa567d505cbdb580ded"
55
"8bd71c09443983b64e4e1c019f515f39"
56
"a234fc1f9b2c1936f02c28b5aea9db3f"
57
"1f6325c794a7965b10b392b84d5d4e62"
58
"3699ccea9d54cdaf42736447a77597e5"
59
"e87c6d996d3b688ee1152cb82f95b4de"
60
"413a5481a768a5791b8b1babdc7a367d"
61
"82c05490cff9899f637b9e6c95d86e47"
62
"78a5e5dc623aa9e9c1ffe3974b084dfb"
63
"6661cbd2790e4168cd835e50a2fb4e1d"
64
"e1d104e5ee6fada9b673707b8b3e6616"
65
)
66
67
install=$pkgname.install
68
url="https://www.segger.com/jlink-software.html"
69
conflicts=("j-link-software-and-documentation")
70
replaces=("j-link-software-and-documentation")
71
DLAGENTS=("https::/usr/bin/env curl -o %o -d accept_license_agreement=accepted -d non_emb_ctr=confirmed")
72
options=(!strip)
73
74
prepare() {
75
# Change src path name
76
if [ ${CARCH} = "i686" ]; then
77
mv JLink_Linux_V${pkgver/./}_i386 JLink
78
fi
79
if [ ${CARCH} = "x86_64" ]; then
80
mv JLink_Linux_V${pkgver/./}_x86_64 JLink
81
fi
82
if [ ${CARCH} = "armv7h" ]; then
83
mv JLink_Linux_V${pkgver/./}_arm JLink
84
fi
85
if [ ${CARCH} = "aarch64" ]; then
86
mv JLink_Linux_V${pkgver/./}_arm64 JLink
87
fi
88
}
89
90
package(){
91
# Match package placement from their .deb, in /opt
92
install -dm755 "${pkgdir}/opt/SEGGER/JLink" \
93
"${pkgdir}/usr/share/licenses/${pkgname}" \
94
"${pkgdir}/usr/lib/" \
95
"${pkgdir}/usr/bin/" \
96
"${pkgdir}/etc/" \
97
"${pkgdir}/usr/lib/udev/rules.d/" \
98
"${pkgdir}/usr/share/doc/${pkgname}/" \
99
"${pkgdir}/usr/share/pixmaps" \
100
"${pkgdir}/usr/share/applications"
101
102
# Install desktop entry
103
for i in "${desktops[@]}"
104
do
105
install -Dm644 "${i}" "${pkgdir}/usr/share/applications/"
106
done
107
install -Dm644 "JLink.svg" "${pkgdir}/usr/share/pixmaps/JLink.svg"
108
109
cd "${srcdir}/JLink"
110
111
# Bulk copy everything
112
if [ ${CARCH} = "armv7h" ]; then
113
cp --preserve=mode -r J* DDC* DevProExe Script README.txt GDBServer Firmwares lib* "${pkgdir}/opt/SEGGER/JLink"
114
else cp --preserve=mode -r J* Doc DDC* DevProExe Script Samples ETC README.txt Firmwares GDBServer lib* "${pkgdir}/opt/SEGGER/JLink"
115
fi
116
if [ ${CARCH} = "x86_64" ]; then
117
cp --preserve=mode -r x86 "${pkgdir}/opt/SEGGER/JLink"
118
fi
119
120
# Copy ETC/JFlash at the right place
121
rm -f ${pkgdir}/etc/JFlash
122
cp --preserve=mode -r ETC/JFlash "${pkgdir}/etc/"
123
124
# Create links where needed
125
ln -s /opt/SEGGER/JLink/Doc/LicenseIncGUI.txt "${pkgdir}/usr/share/licenses/${pkgname}/"
126
sed -i 's/0x//g' 99-jlink.rules
127
patch -i "${srcdir}/99-jlink.rules.patch" 99-jlink.rules
128
install -Dm644 99-jlink.rules -t "${pkgdir}/usr/lib/udev/rules.d/"
129
install -Dm644 "${srcdir}/99-jlink-cmsis-dap.rules" -t "${pkgdir}/usr/lib/udev/rules.d/"
130
rm -f "${pkgdir}/etc/udev/rules.d/99-jlink.rules"
131
132
for f in J*; do
133
ln -s /opt/SEGGER/JLink/"$f" "${pkgdir}/usr/bin"
134
done
135
136
ln -s /opt/SEGGER/JLink/DevProExe "${pkgdir}/usr/bin"
137
138
for f in Doc/*; do
139
ln -s /opt/SEGGER/JLink/"$f" "${pkgdir}/usr/share/doc/${pkgname}"
140
done
141
}
142
Changes since previous scan
--- PKGBUILD @ 2026-07-23 00:14+++ PKGBUILD @ 2026-08-03 00:08@@ -2,7 +2,7 @@ # Maintainer: pzl <alsoelp at gmail dot com> pkgname=jlink-software-and-documentation-pkgver=9.62+pkgver=9.64 pkgrel=2 epoch=65 pkgdesc="Segger JLink software & documentation pack for Linux"@@ -36,10 +36,10 @@ "JTAGLoadExe.desktop" ) source+=(${desktops[@]})-md5sums_x86_64=('abb96cbfcb3e3838eba15680f8e64709')-md5sums_i686=('187f4a7ef851869734f5dd07dd5184dd')-md5sums_aarch64=('b1c6f8c32c598c2d45a1c60f39d9a493')-md5sums_armv7h=('ffb3db141b6761492fb99c9a8c668a14')+md5sums_x86_64=('e980f3ce4260763bc13ed695e28a88e3')+md5sums_i686=('4b4af036f65cf9ce053e6d3fd481c2de')+md5sums_aarch64=('e85d0da684116ab2a39fc2ff20da1fbe')+md5sums_armv7h=('4cabbd236cc2a5bbac6a755b00de464f') md5sums=("a57d93b791581c1f36e4c672303bb85d" "02c4941650a2bd345b03dd958313d4c5"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 17:15:21 | MEDIUM | 1 |
| 2026-07-23 00:14:47 | CLEAN | 2 |
| 2026-07-22 15:20:42 | MEDIUM | 1 |
| 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 23:49:53 | MEDIUM | 1 |
| 2026-07-10 00:20:30 | CLEAN | 2 |
| 2026-07-09 17:31:50 | MEDIUM | 1 |
| 2026-07-01 18:42:17 | CLEAN | 2 |
| 2026-06-25 18:23:17 | CLEAN | 2 |
| 2026-06-21 04:09:38 | CLEAN | 2 |