synwit-jlink-pack

maintainer taotieren · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The package downloads a non-executable data archive from the project's official website to install J-Link device support files; the source is from a plausibly legitimate project host, and the installed content is configuration data, not executable 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-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads a non-executable data archive from the project's official website to install J-Link device support files; the source is from a plausibly legitimate project host, and the installed content is configuration data, not executable 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:23 source=("${pkgname}-${pkgver}.rar::https://www.synwit.cn/uploads/soft/20220721/1-220H1111129320.rar"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: taotieren <admin@taotieren.com>
2
3pkgname=synwit-jlink-pack
4pkgver=220311
5pkgrel=1
6epoch=
7pkgdesc="JLINK Pack 支持包支持华芯微特 MCU 全系列芯片,在 SEGGER JLink 7.62 及以上版本下的安装。"
8arch=('any')
9url="https://www.synwit.cn/wendang455/"
10license=('custom' 'Commercial')
11groups=()
12depends=("jlink-software-and-documentation>=7.62")
13makedepends=('libarchive')
14checkdepends=()
15optdepends=()
16provides=('SWM32_JLINK_pack')
17conflicts=()
18replaces=()
19backup=()
20options=('!strip')
21install=${pkgname}.install
22changelog=
23source=("${pkgname}-${pkgver}.rar::https://www.synwit.cn/uploads/soft/20220721/1-220H1111129320.rar"
24 "${pkgname}.install")
25noextract=(${pkgname}-${pkgver}.rar)
26sha256sums=('08699993243e4809296339beaa1b2ac5a17140eb78ad0d8eb274d86e0cfed9a7'
27 'c817d29ac83eed7bf124ffe059a0c0a0e892630cafcd057d99c25d52e0b7cebd')
28
29package() {
30 _name=synwit
31 _aname=swm32
32 _path=$_name/$_aname
33
34 install -dm0755 "${pkgdir}/opt/$_path/" \
35 "${pkgdir}/opt/$_path/Devices/"
36
37 bsdtar -xf "${srcdir}/${pkgname}-${pkgver}.rar" --strip-components=1 -C "${pkgdir}/opt/$_path/"
38
39 mv "${pkgdir}/opt/$_path/JFLASH.txt" "${pkgdir}/opt/$_path/$_aname.xml"
40 mv "${pkgdir}/opt/$_path/Synwit" "${pkgdir}/opt/$_path/Devices/"
41
42 sed "1i<DataBase>" -i "${pkgdir}/opt/$_path/$_aname.xml"
43 echo "</DataBase>" >> "${pkgdir}/opt/$_path/$_aname.xml"
44
45 find "${pkgdir}/opt/$_path/" -type f -exec chmod 644 "{}" \;
46 find "${pkgdir}/opt/$_path/" -type d -exec chmod 755 "{}" \;
47
48 install -Dm0755 /dev/stdin "${pkgdir}/usr/bin/${pkgname}" << EOF
49#!/bin/bash
50
51if [ ! -d "$HOME"/.config/SEGGER/JLinkDevices ] ; then
52 mkdir -p $HOME/.config/SEGGER/JLinkDevices || exit 1
53fi
54
55if [ -d "$HOME"/.config/SEGGER/JLinkDevices/$_aname ] ; then
56 rm -rf $HOME/.config/SEGGER/JLinkDevices/$_aname || exit 1
57fi
58
59if [ ! -d "$HOME"/.config/SEGGER/JLinkDevices/$_aname ] ; then
60 cp -r /opt/$_path $HOME/.config/SEGGER/JLinkDevices/ || exit 1
61fi
62
63EOF
64}
65

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion