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.

54 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2009-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:=pycrypto
  9. PKG_VERSION:=2.6.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/
  13. PKG_HASH:=f2ce1e989b272cfcb677616763e0a2e7ec659effa67a88aa92b3a65528f60a3c
  14. PKG_LICENSE:=Public Domain
  15. PKG_LICENSE_FILES:=COPYRIGHT
  16. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  17. include $(INCLUDE_DIR)/package.mk
  18. $(call include_mk, python-package.mk)
  19. define Package/python-crypto
  20. SECTION:=lang-python
  21. CATEGORY:=Languages
  22. SUBMENU:=Python
  23. TITLE:=python-crypto
  24. URL:=http://www.pycrypto.org/
  25. DEPENDS:=+python +libgmp
  26. endef
  27. define Package/python-crypto/description
  28. A collection of both secure hash functions (such as MD5 and SHA),
  29. and various encryption algorithms (AES, DES, IDEA, RSA, ElGamal, etc.).
  30. endef
  31. define Build/Compile
  32. $(call Build/Compile/PyMod,,\
  33. install --prefix=/usr --root=$(PKG_INSTALL_DIR),\
  34. CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)" \
  35. )
  36. endef
  37. define Package/python-crypto/install
  38. $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/
  39. $(CP) \
  40. $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
  41. $(1)$(PYTHON_PKG_DIR)/
  42. endef
  43. $(eval $(call PyPackage,python-crypto))
  44. $(eval $(call BuildPackage,python-crypto))