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.

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