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-crcmod
13 PKG_MAINTAINER
:=Micke Prag
<micke.prag@telldus.se
>
16 PKG_SOURCE
:=crcmod-
$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=http
://pypi.python.org
/packages
/source
/c
/crcmod
/
18 PKG_MD5SUM
:=2d5b92117d958dcead94f9e17f54cd32
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/crcmod-
$(PKG_VERSION
)
21 PKG_BUILD_DEPENDS
:=python
23 include $(INCLUDE_DIR
)/package.mk
24 $(call include_mk
, python-package.mk
)
26 define Package
/python-crcmod
31 URL
:=http
://crcmod.sourceforge.net
/
32 DEPENDS
:=+python-light
35 define Package
/python-crcmod
/description
36 The software in this package is a Python module for generating objects that compute the Cyclic Redundancy Check
(CRC
). There is no attempt in this package to explain how the CRC works. There are a number of resources on the web that give a good explanation of the algorithms. Just do a Google search for
"crc calculation" and browse till you find what you need. Another resource can be found in chapter
20 of the book
"Numerical Recipes in C" by Press et. al.
40 $(call Build
/Compile
/PyMod
,,install --prefix="$(PKG_INSTALL_DIR)/usr")
43 define Package
/python-crcmod
/install
44 $(INSTALL_DIR
) $(1)$(PYTHON_PKG_DIR
)
46 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/* \
50 $(eval
$(call BuildPackage
,python-crcmod
))