{ "name": "libusb", "version": "1.0.30", "summary": "libusb: user-space access to USB devices (enumeration, control and bulk transfers), for lsusb", "category": "library", "license": "LGPL-2.1-or-later", "homepage": "https://libusb.info/", "source": { "url": "https://github.com/libusb/libusb/releases/download/v1.0.30/libusb-1.0.30.tar.bz2", "sha256": "fea36f34f9156400209595e300840767ab1a385ede1dc7ee893015aea9c6dbaf" }, "watch": {"kind": "github-release", "repo": "libusb/libusb"}, "deps": [], "env_packages": [], "static": true, "nss": false, "check": "check_lib libusb-1.0 libusb.h 'libusb_context *c = NULL; libusb_device **l; const struct libusb_version *v = libusb_get_version(); ssize_t n; if (libusb_init_context(&c, NULL, 0) != 0) return 1; n = libusb_get_device_list(c, &l); if (n < 0) return 2; libusb_free_device_list(l, 1); printf(\"libusb %u.%u.%u: a context, %zd USB devices listed from sysfs\\n\", v->major, v->minor, v->micro, n); libusb_exit(c); return v->major != 1 || v->micro != 30'" }