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.

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