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.

76 lines
2.1 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.9.0
  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:=dbeb08ad850056747aa7d5f33273b7ce0b9a77910604a1be7b7a6f2ef076213f
  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. PKG_CPE_ID:=cpe:/a:pycryptodome:pycryptodome
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../python-package.mk
  18. include ../python3-package.mk
  19. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  20. PYTHON_PKG_SETUP_ARGS:=
  21. PYTHON_PKG_SETUP_VARS:= \
  22. CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)"
  23. PYTHON3_PKG_SETUP_ARGS:=
  24. PYTHON3_PKG_SETUP_VARS:= \
  25. CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)"
  26. define Package/python-cryptodome/Default
  27. SECTION:=lang-python
  28. CATEGORY:=Languages
  29. SUBMENU:=Python
  30. TITLE:=A self-contained cryptographic library for Python
  31. URL:=https://www.pycryptodome.org/
  32. DEPENDS:=+libgmp
  33. endef
  34. define Package/python-cryptodome
  35. $(call Package/python-cryptodome/Default)
  36. DEPENDS+=+PACKAGE_python-cryptodome:python
  37. VARIANT:=python
  38. CONFLICTS:=python-crypto
  39. endef
  40. define Package/python3-cryptodome
  41. $(call Package/python-cryptodome/Default)
  42. DEPENDS+=+PACKAGE_python3-cryptodome:python3
  43. VARIANT:=python3
  44. CONFLICTS:=python3-crypto
  45. endef
  46. define Package/python-cryptodome/description
  47. PyCryptodome is a self-contained Python package of low-level
  48. cryptographic primitives.
  49. endef
  50. define Package/python3-cryptodome/description
  51. $(call Package/python-cryptodome/description)
  52. .
  53. (Variant for Python3)
  54. endef
  55. $(eval $(call PyPackage,python-cryptodome))
  56. $(eval $(call BuildPackage,python-cryptodome))
  57. $(eval $(call BuildPackage,python-cryptodome-src))
  58. $(eval $(call Py3Package,python3-cryptodome))
  59. $(eval $(call BuildPackage,python3-cryptodome))
  60. $(eval $(call BuildPackage,python3-cryptodome-src))