mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-12 14:13:36 +00:00
ce5b7b168b
This commit adds the ability for `libusb` to access connected USB device through file descriptor given by `termux-usb -E`
25 lines
915 B
Bash
25 lines
915 B
Bash
TERMUX_PKG_HOMEPAGE=https://libusb.info/
|
|
TERMUX_PKG_DESCRIPTION="A C library that provides generic access to USB devices"
|
|
TERMUX_PKG_LICENSE="LGPL-2.1"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="1.0.27"
|
|
TERMUX_PKG_REVISION=1
|
|
TERMUX_PKG_SRCURL=https://github.com/libusb/libusb/releases/download/v${TERMUX_PKG_VERSION}/libusb-${TERMUX_PKG_VERSION}.tar.bz2
|
|
TERMUX_PKG_SHA256=ffaa41d741a8a3bee244ac8e54a72ea05bf2879663c098c82fc5757853441575
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_BREAKS="libusb-dev"
|
|
TERMUX_PKG_REPLACES="libusb-dev"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-udev"
|
|
|
|
termux_step_post_massage() {
|
|
# Do not forget to bump revision of reverse dependencies and rebuild them
|
|
# after SOVERSION is changed.
|
|
local _SOVERSION_GUARD_FILES="lib/libusb-1.0.so"
|
|
local f
|
|
for f in ${_SOVERSION_GUARD_FILES}; do
|
|
if [ ! -e "${f}" ]; then
|
|
termux_error_exit "SOVERSION guard check failed."
|
|
fi
|
|
done
|
|
}
|