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.

73 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-cryptodomex
  6. PKG_VERSION:=3.8.1
  7. PKG_RELEASE:=1
  8. PKG_SOURCE:=pycryptodomex-$(PKG_VERSION).tar.gz
  9. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pycryptodomex
  10. PKG_HASH:=9251b3f6254d4274caa21b79bd432bf07afa3567c6f02f11861659fb6245139a
  11. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-cryptodomex-$(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-cryptodomex/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-cryptodomex
  34. $(call Package/python-cryptodomex/Default)
  35. DEPENDS+=+PACKAGE_python-cryptodomex:python
  36. VARIANT:=python
  37. endef
  38. define Package/python3-cryptodomex
  39. $(call Package/python-cryptodomex/Default)
  40. DEPENDS+=+PACKAGE_python3-cryptodomex:python3
  41. VARIANT:=python3
  42. endef
  43. define Package/python-cryptodomex/description
  44. PyCryptodome is a self-contained Python package of low-level
  45. cryptographic primitives.
  46. endef
  47. define Package/python3-cryptodomex/description
  48. $(call Package/python-cryptodomex/description)
  49. .
  50. (Variant for Python3)
  51. endef
  52. $(eval $(call PyPackage,python-cryptodomex))
  53. $(eval $(call BuildPackage,python-cryptodomex))
  54. $(eval $(call BuildPackage,python-cryptodomex-src))
  55. $(eval $(call Py3Package,python3-cryptodomex))
  56. $(eval $(call BuildPackage,python3-cryptodomex))
  57. $(eval $(call BuildPackage,python3-cryptodomex-src))