openocd-stm
LOW
maintainer Poscat
0 votes
scanned 2026-09-01 15:48:43.798595
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
pkgname=openocd-stm
2
pkgver=2.2.0
3
pkgrel=1
4
pkgdesc='Debugging, in-system programming and boundary-scan testing for embedded target devices'
5
arch=(x86_64)
6
url='https://openocd.org'
7
license=(GPL-2.0-or-later)
8
depends=(
9
capstone
10
glibc
11
hidapi
12
jimtcl
13
libftdi-compat
14
libjaylink
15
libusb
16
)
17
makedepends=(
18
git
19
)
20
provides=('openocd')
21
conflicts=('openocd')
22
source=(
23
"$pkgname::git+https://github.com/STMicroelectronics/openocd#tag=openocd-cubeide-v$pkgver"
24
no-duplicate-udev-rules.patch
25
jimtcl-fix.patch
26
)
27
sha512sums=('edae0023dbecff3f383373256e17c0eb7551a194cf36bd5c6418e00f9359362c10d705de8c503e2cb50b98c338114984cd9da7f61c46f8f0508a8108221bd777'
28
'139a3b007ef6df3047aaabe7b9878d2a09b67a0dc6cd17174a5d42692ac10e9ccddec1a39fb325e4a017041b118297e27e657518c1f203bba5f23d8b468b7946'
29
'8e67eb2c2b1da3153bff99686e6d438ca288bbe3f19cf4c93e2537e2b9e5cf06d13602c18591940bb023828eb3db08cce8bb2ef4b930021578c6d67f606b1bad')
30
b2sums=('05e9693c9496076475ebaba093028aff033f9a9341e2630d964db8e1344d9597b9359f2962a584dc609a5a3e2dc099b12279d7471e8a6097e122ee807e6366fe'
31
'ee308dd9c85a4fba4c75bff443fb9eeb46f4d8000c9c7308e7e378baed95f3c4fd6f9dc872f5b1b4110cacc9b05a92a8cb50cecdc7b8b8f128b213cc572f6317'
32
'6acfa4990cb818bdfd8b89010156a2c35b50f65f35033c3f286c4b05d05828d8c9d24c02f80bb43af6e04faf01b2d5c759b367ef9f7932ca496b9a3ba6a720e0')
33
34
prepare() {
35
cd "$pkgname"
36
37
# modify udev rules
38
sed -i 's|GROUP="plugdev", ||g' contrib/60-openocd.rules
39
40
# ensure udev rules are not duplicated
41
patch -p1 -i "$srcdir/no-duplicate-udev-rules.patch"
42
43
# fix build with jimtcl 0.83+
44
patch -p1 -i "$srcdir/jimtcl-fix.patch"
45
46
# revert workarounds for jimtcl expr syntax changes
47
git cherry-pick --no-commit 95603fae18f81eebdafc5b318e70f9e2cdefab9e
48
49
# run autotools configuration
50
# all submodules are unnecessary, so skip setup
51
./bootstrap nosubmodule
52
}
53
54
build() {
55
cd "$pkgname"
56
57
local _features=(
58
aice
59
amtjtagaccel
60
armjtagew
61
at91rm9200
62
buspirate
63
capstone
64
cmsis-dap
65
dummy
66
ep93xx
67
ftdi
68
gw16012
69
ioutil
70
jlink
71
jtag_vpi
72
legacy-ft2232_libftdi
73
oocd_trace
74
opendous
75
openjtag_ftdi
76
osbdm
77
parport
78
presto_libftdi
79
remote-bitbang
80
rlink
81
stlink
82
sysfsgpio
83
ti-icdi
84
ulink
85
usb-blaster-2
86
usb_blaster_libftdi
87
usbprog
88
vsllink
89
xlnx_pcie_xvc
90
)
91
92
./configure \
93
--prefix=/usr \
94
--disable-werror \
95
--disable-internal-jimtcl \
96
--disable-internal-libjaylink \
97
${_features[@]/#/--enable-}
98
99
make
100
}
101
102
package() {
103
cd "$pkgname"
104
105
make DESTDIR="$pkgdir" install
106
107
install -vDm644 -t "$pkgdir/usr/lib/udev/rules.d" contrib/60-openocd.rules
108
}
109
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-01 15:48:43 | Low | 1 |