fwknop: init script improvements
[feed/packages.git] / lang / python / python-gnupg / Makefile
1 # This is free software, licensed under the GNU General Public License v2.
2 # See /LICENSE for more information.
3 #
4
5 include $(TOPDIR)/rules.mk
6
7 PKG_NAME:=python-gnupg
8 PKG_VERSION:=0.4.4
9 PKG_RELEASE:=2
10
11 PYPI_NAME:=$(PKG_NAME)
12 PKG_HASH:=45daf020b370bda13a1429c859fcdff0b766c0576844211446f9266cae97fb0e
13
14 PKG_LICENSE:=GPL-3.0-or-later
15 PKG_LICENSE_FILES:=LICENSE
16 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
17 PKG_CPE_ID:=cpe:/a:python-gnupg_project:python-gnupg
18
19 include ../pypi.mk
20 include $(INCLUDE_DIR)/package.mk
21 include ../python-package.mk
22 include ../python3-package.mk
23
24 define Package/python-gnupg/Default
25 SECTION:=lang
26 CATEGORY:=Languages
27 SUBMENU:=Python
28 URL:=https://gnupg.readthedocs.io/en/latest/
29 DEPENDS:=+gnupg
30 endef
31
32 define Package/python-gnupg
33 $(call Package/python-gnupg/Default)
34 TITLE:=python-pyodbc
35 DEPENDS+=+PACKAGE_python-gnupg:python-light
36 VARIANT:=python
37 endef
38
39 define Package/python3-gnupg
40 $(call Package/python-gnupg/Default)
41 TITLE:=python3-gnupg
42 DEPENDS+=+PACKAGE_python3-gnupg:python3-light
43 VARIANT:=python3
44 endef
45
46 define Package/python-gnupg/description
47 A Python wrapper for GnuPG
48
49 This module allows easy access to GnuPG.s key management, encryption
50 and signature functionality from Python programs, by interacting with
51 GnuPG through file descriptors. Input arguments are strictly checked
52 and sanitised, and therefore this module should be safe to use in
53 networked applications requiring direct user input. It is intended for
54 use on Windows, MacOS X, BSD, or Linux, with Python 2.6, Python 2.7,
55 Python 3.3, Python 3.4, or PyPy.
56 endef
57
58 define Package/python3-gnupg/description
59 $(call Package/python-gnupg/description)
60
61 (Variant for Python3)
62 endef
63
64 define PyBuild/Compile
65 $(call Build/Compile/PyMod,,\
66 install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" \
67 )
68 endef
69
70 define Py3Build/Compile
71 $(call Build/Compile/Py3Mod,,\
72 install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" \
73 )
74 endef
75
76
77 $(eval $(call PyPackage,python-gnupg))
78 $(eval $(call BuildPackage,python-gnupg))
79
80 $(eval $(call Py3Package,python3-gnupg))
81 $(eval $(call BuildPackage,python3-gnupg))