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.0 platform.
Download (HTTP): https://github.com/hughsie/libgusb/releases/download/0.4.6/libgusb-0.4.6.tar.xz
Download MD5 sum: 309ebe36641fe53b883cdac8ad38cb94
Download size: 52 KB
Estimated disk space required: 4.9 MB (with tests)
Estimated build time: less than 0.1 SBU (with tests)
JSON-GLib-1.6.6 and libusb-1.0.26
gobject-introspection-1.76.1,
umockdev-0.17.18, usbutils-015 (for
usb.ids
data file, which is also
required for the tests), and Vala-0.56.11
Install libgusb by running the following commands:
mkdir build && cd build && meson setup .. \ --prefix=/usr \ --buildtype=release \ -Ddocs=false && ninja
If you have Gi-DocGen-2023.1 installed and wish to build the API documentation for this package, issue:
sed "/output: 'libgusb'/s/'\$/-0.4.6'/" -i ../docs/meson.build && meson configure -Ddocs=true && ninja
To test the results, issue: ninja test.
Now, as the root
user:
ninja install
--buildtype=release
:
Specify a buildtype suitable for stable releases of the package, as
the default may produce unoptimized binaries.
-Ddocs=false
: Allow
building this package without Gi-DocGen-2023.1 installed. If you have
Gi-DocGen-2023.1 installed and you wish to
rebuild and install the API documentation, a meson configure command will
reset this option.