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.1
  7. PKG_RELEASE:=1
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  9. PKG_SOURCE_URL:=https://pypi.python.org/packages/fc/f1/df6c06da34939f67ea622e0b31dbc5bdb5121b271ab530d151df59974425/
  10. PKG_MD5SUM:=b5d98344798b3cbb80cdcc1bfd788ea3
  11. PKG_HASH:=ef47b02eaf41dee3cf4b02ddf83130827318de9fe3eae89d01a3f05859e20e1a
  12. PKG_LICENSE:=GPL-3.0+
  13. PKG_LICENSE_FILES:=LICENSE
  14. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  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. $(call include_mk, python-package.mk)
  19. $(call include_mk, python3-package.mk)
  20. define Package/python-gnupg/Default
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. SUBMENU:=Python
  24. URL:=https://github.com/isislovecruft/python-gnupg
  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))