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.

49 lines
1.5 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-crcmod
  9. PKG_VERSION:=1.7
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Micke Prag <micke.prag@telldus.se>
  12. PKG_LICENSE:=MIT
  13. PYPI_NAME:=crcmod
  14. PKG_HASH:=dc7051a0db5f2bd48665a990d3ec1cc305a466a77358ca4492826f41f283601e
  15. PKG_BUILD_DEPENDS:=python
  16. include ../pypi.mk
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python-package.mk
  19. define Package/python-crcmod
  20. SUBMENU:=Python
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. TITLE:=python-crcmod
  24. URL:=http://crcmod.sourceforge.net/
  25. DEPENDS:=+python-light
  26. endef
  27. define Package/python-crcmod/description
  28. 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.
  29. endef
  30. define Build/Compile
  31. $(call Build/Compile/PyMod,,install --prefix="$(PKG_INSTALL_DIR)/usr")
  32. endef
  33. define Package/python-crcmod/install
  34. $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
  35. $(CP) \
  36. $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
  37. $(1)$(PYTHON_PKG_DIR)
  38. endef
  39. $(eval $(call BuildPackage,python-crcmod))