From: Oleksandr Grytsenko <[email protected]>

Add libusb1 binding for Lua as new package.

It adds ability for direct control of any USB device connected to your router from Lua scripts. Areas of usage - home automation, robotics, non-standard use of USB devices, platform independent drivers-scripts.

Signed-off-by: Oleksandr Grytsenko <[email protected]>
---
diff --git a/lang/lualibusb1/Makefile b/lang/lualibusb1/Makefile
new file mode 100644
index 0000000..ab01f0e
--- /dev/null
+++ b/lang/lualibusb1/Makefile
@@ -0,0 +1,36 @@
+#
+# Copyright (C) 2013 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=lualibusb1
+PKG_VERSION:=1.0.1
+
+PKG_SOURCE_URL:=http://$(PKG_NAME).googlecode.com/files
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/lualibusb1
+  SUBMENU:=Lua
+  SECTION:=lang
+  CATEGORY:=Languages
+  TITLE:=libusb Lua binding
+  URL:=https://code.google.com/p/lualibusb1/
+  DEPENDS:=+liblua +libusb-1.0
+endef
+
+define Package/lualibusb1/description
+  This is the Lua binding for the libusb-1.0 library.
+endef
+
+define Package/lualibusb1/install
+       $(INSTALL_DIR) $(1)/usr/lib/lua
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/libusb1.so $(1)/usr/lib/lua/
+endef
+
+$(eval $(call BuildPackage,lualibusb1))
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to