The libgusb package contains the GObject wrappers for libusb-1.0 that makes it easy to do asynchronous control, bulk and interrupt transfers with proper cancellation and integration into a mainloop.
This package is known to build and work properly using an LFS 12.4 platform.
Download (HTTP): https://github.com/hughsie/libgusb/releases/download/0.4.9/libgusb-0.4.9.tar.xz
Download SHA256 Sum: 9df5ef301d6a4b361002aa52cce1165a87a89744055879bdbab31e7e86f1e846
Download MD5 sum: 354a3227334991ea4e924843c144bd82
Download size: 295.6 KB
Estimated disk space required: 3,545.1 KB
Estimated build time: less than 0.1 SBU
JSON-GLib-1.10.8 and libusb-1.0.29
GLib-2.86.2 (with GObject Introspection),
hwdata-0.401 (for usb.ids data file,
which is also required for the tests), and
Vala-0.56.18
"gi-docgen" and "umockdev" (for full test coverage)
Prepare libgusb by running the following commands:
meson setup build \
--prefix=/usr \
--buildtype=release \
-D docs=falseTo Build the packlage, issue:
ninja -C build
To test the results, issue:
ninja -C build test
Now, as the root user:
ninja -C build install
--buildtype=release: Specify a buildtype
suitable for stable releases of the package, as the default may
produce unoptimized binaries.
-D docs=false:
Allow building this package without Gi-DocGen-2025.5 installed.