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