diff --git a/lang/python-uinput/Makefile b/lang/python-uinput/Makefile
new file mode 100644
index 0000000..3111d2f
--- /dev/null
+++ b/lang/python-uinput/Makefile
@@ -0,0 +1,52 @@
+#
+# Copyright (C) 2008-2011 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:=python-uinput
+PKG_VERSION:=20120828
+PKG_RELEASE:=1
+PKG_REV:=0cf8b4965bbaa37d32c026e46a656dc6fe5eb5d6
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_SOURCE_URL:=https://github.com/tuomasjjrasanen/python-uinput.git
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
+PKG_SOURCE_VERSION:=$(PKG_REV)
+PKG_SOURCE_PROTO:=git
+
+PKG_BUILD_DEPENDS:=python
+
+include $(INCLUDE_DIR)/package.mk
+$(call include_mk, python-package.mk)
+
+define Package/python-uinput
+  SUBMENU:=Python
+  SECTION:=lang
+  CATEGORY:=Languages
+  TITLE:=python-uinput
+  URL:=https://github.com/tuomasjjrasanen/python-uinput
+  DEPENDS:=+python +distribute +kmod-input-uinput +udev
+endef
+
+define Package/python-uinput/description
+  Python-uinput provides a pythonic API to the Linux uinput-system.
+endef
+
+define Build/Compile
+       $(call Build/Compile/PyMod,., \
+               install --prefix="/usr" --root="$(PKG_INSTALL_DIR)", \
+       )
+endef
+
+define Package/python-uinput/install
+       $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
+       $(CP) \
+           $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
+           $(1)$(PYTHON_PKG_DIR)/
+endef
+
+$(eval $(call BuildPackage,python-uinput))
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to