03bb5333f36e51a4149819a697dd08361360dea7
[librecmc/package-feed.git] / lang / python-pyserial / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=python-pyserial
11 PKG_VERSION:=3.1.1
12 PKG_RELEASE:=1
13 PKG_MAINTAINER:=Micke Prag <micke.prag@telldus.se>
14 PKG_LICENSE:=Python-2.0
15
16 PKG_SOURCE:=pyserial-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://pypi.python.org/packages/3c/d8/a9fa247ca60b02b3bebbd61766b4f321393b57b13c53b18f6f62cf172c08/
18 PKG_MD5SUM:=2f72100de3e410b36d575e12e82e9d27
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/pyserial-$(PKG_VERSION)
21 PKG_BUILD_DEPENDS:=python
22
23 include $(INCLUDE_DIR)/package.mk
24 $(call include_mk, python-package.mk)
25
26 define Package/python-pyserial
27   SUBMENU:=Python
28   SECTION:=lang
29   CATEGORY:=Languages
30   TITLE:=python-pyserial
31   URL:=http://pyserial.sourceforge.net
32   DEPENDS:=+python-light
33 endef
34
35 define Package/python-pyserial/description
36         serial port python bindings
37 endef
38
39 define Build/Compile
40         $(call Build/Compile/PyMod,,install --prefix=/usr --root="$(PKG_INSTALL_DIR)")
41 endef
42
43 define Package/python-pyserial/install
44         $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
45         $(CP) \
46             $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
47             $(1)$(PYTHON_PKG_DIR)
48 endef
49
50 $(eval $(call BuildPackage,python-pyserial))