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.

81 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:=0.4.4
  7. PKG_RELEASE:=2
  8. PYPI_NAME:=$(PKG_NAME)
  9. PKG_HASH:=45daf020b370bda13a1429c859fcdff0b766c0576844211446f9266cae97fb0e
  10. PKG_LICENSE:=GPL-3.0-or-later
  11. PKG_LICENSE_FILES:=LICENSE
  12. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  13. PKG_CPE_ID:=cpe:/a:python-gnupg_project:python-gnupg
  14. include ../pypi.mk
  15. include $(INCLUDE_DIR)/package.mk
  16. include ../python-package.mk
  17. include ../python3-package.mk
  18. define Package/python-gnupg/Default
  19. SECTION:=lang
  20. CATEGORY:=Languages
  21. SUBMENU:=Python
  22. URL:=https://gnupg.readthedocs.io/en/latest/
  23. DEPENDS:=+gnupg
  24. endef
  25. define Package/python-gnupg
  26. $(call Package/python-gnupg/Default)
  27. TITLE:=python-pyodbc
  28. DEPENDS+=+PACKAGE_python-gnupg:python-light
  29. VARIANT:=python
  30. endef
  31. define Package/python3-gnupg
  32. $(call Package/python-gnupg/Default)
  33. TITLE:=python3-gnupg
  34. DEPENDS+=+PACKAGE_python3-gnupg:python3-light
  35. VARIANT:=python3
  36. endef
  37. define Package/python-gnupg/description
  38. A Python wrapper for GnuPG
  39. This module allows easy access to GnuPG.s key management, encryption
  40. and signature functionality from Python programs, by interacting with
  41. GnuPG through file descriptors. Input arguments are strictly checked
  42. and sanitised, and therefore this module should be safe to use in
  43. networked applications requiring direct user input. It is intended for
  44. use on Windows, MacOS X, BSD, or Linux, with Python 2.6, Python 2.7,
  45. Python 3.3, Python 3.4, or PyPy.
  46. endef
  47. define Package/python3-gnupg/description
  48. $(call Package/python-gnupg/description)
  49. (Variant for Python3)
  50. endef
  51. define PyBuild/Compile
  52. $(call Build/Compile/PyMod,,\
  53. install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" \
  54. )
  55. endef
  56. define Py3Build/Compile
  57. $(call Build/Compile/Py3Mod,,\
  58. install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" \
  59. )
  60. endef
  61. $(eval $(call PyPackage,python-gnupg))
  62. $(eval $(call BuildPackage,python-gnupg))
  63. $(eval $(call Py3Package,python3-gnupg))
  64. $(eval $(call BuildPackage,python3-gnupg))