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.

75 lines
2.0 KiB

  1. # This is free software, licensed under the GNU General Public License v2.
  2. # See /LICENSE for more information.
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=python-cryptodome
  6. PKG_VERSION:=3.8.1
  7. PKG_RELEASE:=1
  8. PKG_SOURCE:=pycryptodome-$(PKG_VERSION).tar.gz
  9. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pycryptodome
  10. PKG_HASH:=68ad0ce4a374577a26bb7f458575abe3c2a342818b5280de6e5738870b7761b3
  11. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-cryptodome-$(PKG_VERSION)
  12. PKG_LICENSE:=BSD-2-Clause
  13. PKG_LICENSE_FILES:=LICENSE.rst
  14. PKG_MAINTAINER:=Richard Yu <yurichard3839@gmail.com>
  15. include $(INCLUDE_DIR)/package.mk
  16. include ../python-package.mk
  17. include ../python3-package.mk
  18. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  19. PYTHON_PKG_SETUP_ARGS:=
  20. PYTHON_PKG_SETUP_VARS:= \
  21. CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)"
  22. PYTHON3_PKG_SETUP_ARGS:=
  23. PYTHON3_PKG_SETUP_VARS:= \
  24. CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)"
  25. define Package/python-cryptodome/Default
  26. SECTION:=lang-python
  27. CATEGORY:=Languages
  28. SUBMENU:=Python
  29. TITLE:=A self-contained cryptographic library for Python
  30. URL:=https://www.pycryptodome.org/
  31. DEPENDS:=+libgmp
  32. endef
  33. define Package/python-cryptodome
  34. $(call Package/python-cryptodome/Default)
  35. DEPENDS+=+PACKAGE_python-cryptodome:python
  36. VARIANT:=python
  37. CONFLICTS:=python-crypto
  38. endef
  39. define Package/python3-cryptodome
  40. $(call Package/python-cryptodome/Default)
  41. DEPENDS+=+PACKAGE_python3-cryptodome:python3
  42. VARIANT:=python3
  43. CONFLICTS:=python3-crypto
  44. endef
  45. define Package/python-cryptodome/description
  46. PyCryptodome is a self-contained Python package of low-level
  47. cryptographic primitives.
  48. endef
  49. define Package/python3-cryptodome/description
  50. $(call Package/python-cryptodome/description)
  51. .
  52. (Variant for Python3)
  53. endef
  54. $(eval $(call PyPackage,python-cryptodome))
  55. $(eval $(call BuildPackage,python-cryptodome))
  56. $(eval $(call BuildPackage,python-cryptodome-src))
  57. $(eval $(call Py3Package,python3-cryptodome))
  58. $(eval $(call BuildPackage,python3-cryptodome))
  59. $(eval $(call BuildPackage,python3-cryptodome-src))