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.

72 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-gnupg
  6. PKG_VERSION:=2.3.0
  7. PKG_RELEASE:=1
  8. PKG_SOURCE_NAME:=gnupg
  9. PKG_SOURCE:=$(PKG_SOURCE_NAME)-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:=https://pypi.python.org/packages/fa/ea/58e0415e1e3c3a0649119158e036ca4a9af154c56ef80f3d6de986bf9cb2/
  11. PKG_MD5SUM:=b6ebde86093f262f8430eff8d8a4c82b
  12. PKG_HASH:=1d90e854dcc7790a7efc3aac5998159553cc34ec599ee2bc7927beb45fb564ec
  13. PKG_LICENSE:=GPL-3.0+
  14. PKG_LICENSE_FILES:=LICENSE
  15. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  16. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_SOURCE_NAME)-$(PKG_VERSION)
  17. PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  18. include $(INCLUDE_DIR)/package.mk
  19. $(call include_mk, python-package.mk)
  20. $(call include_mk, python3-package.mk)
  21. define Package/python-gnupg/Default
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. SUBMENU:=Python
  25. URL:=https://github.com/isislovecruft/python-gnupg
  26. DEPENDS:=+gnupg
  27. endef
  28. define Package/python-gnupg
  29. $(call Package/python-gnupg/Default)
  30. TITLE:=python-pyodbc
  31. DEPENDS+=+PACKAGE_python-gnupg:python-light
  32. VARIANT:=python
  33. endef
  34. define Package/python3-gnupg
  35. $(call Package/python-gnupg/Default)
  36. TITLE:=python3-gnupg
  37. DEPENDS+=+PACKAGE_python3-gnupg:python3-light
  38. VARIANT:=python3
  39. endef
  40. define Package/python-gnupg/description
  41. A Python wrapper for GnuPG
  42. This module allows easy access to GnuPG.s key management, encryption
  43. and signature functionality from Python programs, by interacting with
  44. GnuPG through file descriptors. Input arguments are strictly checked
  45. and sanitised, and therefore this module should be safe to use in
  46. networked applications requiring direct user input. It is intended for
  47. use on Windows, MacOS X, BSD, or Linux, with Python 2.6, Python 2.7,
  48. Python 3.3, Python 3.4, or PyPy.
  49. endef
  50. define Package/python3-gnupg/description
  51. $(call Package/python-gnupg/description)
  52. (Variant for Python3)
  53. endef
  54. $(eval $(call PyPackage,python-gnupg))
  55. $(eval $(call BuildPackage,python-gnupg))
  56. $(eval $(call Py3Package,python3-gnupg))
  57. $(eval $(call BuildPackage,python3-gnupg))