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.

65 lines
1.8 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=python-certifi
  7. PKG_VERSION:=2019.9.11
  8. PKG_RELEASE:=1
  9. PKG_MAINTAINER:=Eneas U de Queiroz <cote2004-github@yahoo.com>
  10. PKG_LICENSE:=MPL-2.0
  11. PKG_LICENSE_FILES:=LICENSE
  12. PKG_SOURCE:=certifi-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/c/certifi
  14. PKG_HASH:=e4f3620cfea4f83eedc95b24abd9cd56f3c4b146dd0177e83a21b4eb49e21e50
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-certifi-$(PKG_VERSION)
  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. define Package/python-certifi/Default
  21. SUBMENU:=Python
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=Python package for Mozilla's CA Bundle
  25. URL:=http://certifi.io/
  26. endef
  27. define Package/python-certifi
  28. $(call Package/python-certifi/Default)
  29. DEPENDS:=+PACKAGE_python-certifi:python-light
  30. VARIANT:=python
  31. endef
  32. define Package/python3-certifi
  33. $(call Package/python-certifi/Default)
  34. DEPENDS:=+PACKAGE_python3-certifi:python3-light
  35. VARIANT:=python3
  36. endef
  37. define Package/python-certifi/description
  38. Certifi is a carefully curated collection of Root Certificates for validating the
  39. trustworthiness of SSL certificates while verifying the identity of TLS hosts.
  40. endef
  41. define Package/python3-certifi/description
  42. $(call Package/python-certifi/description)
  43. .
  44. (Variant for Python3)
  45. endef
  46. $(eval $(call PyPackage,python-certifi))
  47. $(eval $(call BuildPackage,python-certifi))
  48. $(eval $(call BuildPackage,python-certifi-src))
  49. $(eval $(call Py3Package,python3-certifi))
  50. $(eval $(call BuildPackage,python3-certifi))
  51. $(eval $(call BuildPackage,python3-certifi-src))