You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.2 KiB

  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=python-pyserial
  9. PKG_VERSION:=3.1.1
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Micke Prag <micke.prag@telldus.se>
  12. PKG_LICENSE:=Python-2.0
  13. PKG_SOURCE:=pyserial-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=http://pypi.python.org/packages/3c/d8/a9fa247ca60b02b3bebbd61766b4f321393b57b13c53b18f6f62cf172c08/
  15. PKG_MD5SUM:=2f72100de3e410b36d575e12e82e9d27
  16. PKG_BUILD_DIR:=$(BUILD_DIR)/pyserial-$(PKG_VERSION)
  17. PKG_BUILD_DEPENDS:=python
  18. include $(INCLUDE_DIR)/package.mk
  19. $(call include_mk, python-package.mk)
  20. define Package/python-pyserial
  21. SUBMENU:=Python
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=python-pyserial
  25. URL:=http://pyserial.sourceforge.net
  26. DEPENDS:=+python-light
  27. endef
  28. define Package/python-pyserial/description
  29. serial port python bindings
  30. endef
  31. define Build/Compile
  32. $(call Build/Compile/PyMod,,install --prefix=/usr --root="$(PKG_INSTALL_DIR)")
  33. endef
  34. define Package/python-pyserial/install
  35. $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
  36. $(CP) \
  37. $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
  38. $(1)$(PYTHON_PKG_DIR)
  39. endef
  40. $(eval $(call BuildPackage,python-pyserial))