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.

59 lines
1.6 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 ../python3-package.mk
  17. define Package/python-gnupg/Default
  18. SECTION:=lang
  19. CATEGORY:=Languages
  20. SUBMENU:=Python
  21. URL:=https://gnupg.readthedocs.io/en/latest/
  22. DEPENDS:=+gnupg
  23. endef
  24. define Package/python3-gnupg
  25. $(call Package/python-gnupg/Default)
  26. TITLE:=python3-gnupg
  27. DEPENDS+=+PACKAGE_python3-gnupg:python3-light
  28. VARIANT:=python3
  29. endef
  30. define Package/python3-gnupg/description
  31. A Python wrapper for GnuPG
  32. This module allows easy access to GnuPG.s key management, encryption
  33. and signature functionality from Python programs, by interacting with
  34. GnuPG through file descriptors. Input arguments are strictly checked
  35. and sanitised, and therefore this module should be safe to use in
  36. networked applications requiring direct user input. It is intended for
  37. use on Windows, MacOS X, BSD, or Linux, with Python 2.6, Python 2.7,
  38. Python 3.3, Python 3.4, or PyPy.
  39. (Variant for Python3)
  40. endef
  41. define Py3Build/Compile
  42. $(call Build/Compile/Py3Mod,,\
  43. install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" \
  44. )
  45. endef
  46. $(eval $(call Py3Package,python3-gnupg))
  47. $(eval $(call BuildPackage,python3-gnupg))