Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

160.4. libsigrokdecode-0.5.3

Protocol decoder library, with the decoders written in Python

0.5.3-1 · GPL-3.0-or-later · 0.1 SBU · 3.0 MiB, 495 files · 41_system, 433 of 1047 · ports/core/eda/libsigrokdecode

Homepage: https://sigrok.org/wiki/Libsigrokdecode

Why it is in KDOS. The comment above the 3 ports from libsigrok to sigrok-cli in script/phases/41_system/packages.d/eda.txt:

A hundred hardware drivers behind one interface, so a program reads samples without knowing which box produced them. The decoders are python modules — adding one for an undecoded chip is writing a file, not patching C.

Depends on: autoconf, automake, libtool, pkgconf, glib, python3.

Required by (1): sigrok-cli.

Sources: libsigrokdecode-0.5.3.tar.gz (871.9 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install libsigrokdecode'

build.sh:

export LDFLAGS="$LDFLAGS $(pkg-config --libs python3-embed)"

./configure --prefix=/usr --libdir=/usr/lib --disable-static
make
make DESTDIR=$PKG install

Libraries: libsigrokdecode.so.

Directories: /usr/include/libsigrokdecode, /usr/share/libsigrokdecode, /usr/share/licenses/libsigrokdecode.