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. # Copyright (C) 2017 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:=python-asn1crypto
  9. PKG_VERSION:=0.24.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=asn1crypto-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://pypi.io/packages/source/a/asn1crypto
  13. PKG_HASH:=9d5c20441baf0cb60a4ac34cc447c6c189024b6b4c6cd7877034f4965c464e49
  14. PKG_LICENSE:=MIT
  15. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  16. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-asn1crypto-$(PKG_VERSION)
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python-package.mk
  19. include ../python3-package.mk
  20. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  21. define Package/python-asn1crypto/Default
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. SUBMENU:=Python
  25. URL:=https://github.com/wbond/asn1crypto
  26. endef
  27. define Package/python-asn1crypto
  28. $(call Package/python-asn1crypto/Default)
  29. TITLE:=python-asn1crypto
  30. DEPENDS:=+PACKAGE_python-asn1crypto:python-light
  31. VARIANT:=python
  32. endef
  33. define Package/python3-asn1crypto
  34. $(call Package/python-asn1crypto/Default)
  35. TITLE:=python3-asn1crypto
  36. DEPENDS:=+PACKAGE_python3-asn1crypto:python3-light
  37. VARIANT:=python3
  38. endef
  39. define Package/python-asn1crypto/description
  40. Fast ASN.1 parser and serializer with definitions for
  41. private keys, public keys, certificates, CRL, OCSP,
  42. CMS, PKCS#3, PKCS#7, PKCS#8, PKCS#12, PKCS#5, X.509 and TSP
  43. endef
  44. define Package/python3-asn1crypto/description
  45. $(call Package/python-asn1crypto/description)
  46. .
  47. (Variant for Python3)
  48. endef
  49. $(eval $(call PyPackage,python-asn1crypto))
  50. $(eval $(call BuildPackage,python-asn1crypto))
  51. $(eval $(call Py3Package,python3-asn1crypto))
  52. $(eval $(call BuildPackage,python3-asn1crypto))