chiark / gitweb /
Created nonworking (yet) build.sh for libusb (#764)
authorbajabaq <tad.whiteside@gmail.com>
Tue, 14 Mar 2017 02:43:27 +0000 (22:43 -0400)
committerFredrik Fornwall <fredrik@fornwall.net>
Tue, 14 Mar 2017 02:43:27 +0000 (03:43 +0100)
* Create build.sh

initial try to get libusb to build for termux
In docker image, had to apt-get install libudev-dev
so libudev is probably a dependency

* libusb: switch to github zip, disable udev

disabled-packages/libusb/build.sh [new file with mode: 0644]

diff --git a/disabled-packages/libusb/build.sh b/disabled-packages/libusb/build.sh
new file mode 100644 (file)
index 0000000..9842154
--- /dev/null
@@ -0,0 +1,12 @@
+TERMUX_PKG_HOMEPAGE=http://libusb.info/
+TERMUX_PKG_DESCRIPTION="A cross-platform user library to access USB devices"
+TERMUX_PKG_VERSION=1.0.21
+TERMUX_PKG_SRCURL=https://github.com/libusb/libusb/archive/v${TERMUX_PKG_VERSION}.zip
+TERMUX_PKG_SHA256=83895453d7b6e8149ba3c2aaac796615a80a6a599a94458e73029fef12d1721c
+TERMUX_PKG_FOLDERNAME=libusb-${TERMUX_PKG_VERSION}
+TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-udev"
+
+termux_step_pre_configure() {
+       cd ${TERMUX_PKG_SRCDIR}
+       NOCONFIGURE=true ./autogen.sh
+}