Merge pull request #4507 from diizzyy/patch-59
[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:=2.3.0
9 PKG_RELEASE:=1
10
11 PKG_SOURCE_NAME:=gnupg
12 PKG_SOURCE:=$(PKG_SOURCE_NAME)-$(PKG_VERSION).tar.gz
13 PKG_SOURCE_URL:=https://pypi.python.org/packages/fa/ea/58e0415e1e3c3a0649119158e036ca4a9af154c56ef80f3d6de986bf9cb2/
14 PKG_MD5SUM:=b6ebde86093f262f8430eff8d8a4c82b
15 PKG_HASH:=1d90e854dcc7790a7efc3aac5998159553cc34ec599ee2bc7927beb45fb564ec
16
17 PKG_LICENSE:=GPL-3.0+
18 PKG_LICENSE_FILES:=LICENSE
19 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_SOURCE_NAME)-$(PKG_VERSION)
22 PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
23
24 include $(INCLUDE_DIR)/package.mk
25 $(call include_mk, python-package.mk)
26 $(call include_mk, python3-package.mk)
27
28 define Package/python-gnupg/Default
29 SECTION:=lang
30 CATEGORY:=Languages
31 SUBMENU:=Python
32 URL:=https://github.com/isislovecruft/python-gnupg
33 DEPENDS:=+gnupg
34 endef
35
36 define Package/python-gnupg
37 $(call Package/python-gnupg/Default)
38 TITLE:=python-pyodbc
39 DEPENDS+=+PACKAGE_python-gnupg:python-light
40 VARIANT:=python
41 endef
42
43 define Package/python3-gnupg
44 $(call Package/python-gnupg/Default)
45 TITLE:=python3-gnupg
46 DEPENDS+=+PACKAGE_python3-gnupg:python3-light
47 VARIANT:=python3
48 endef
49
50 define Package/python-gnupg/description
51 A Python wrapper for GnuPG
52
53 This module allows easy access to GnuPG.s key management, encryption
54 and signature functionality from Python programs, by interacting with
55 GnuPG through file descriptors. Input arguments are strictly checked
56 and sanitised, and therefore this module should be safe to use in
57 networked applications requiring direct user input. It is intended for
58 use on Windows, MacOS X, BSD, or Linux, with Python 2.6, Python 2.7,
59 Python 3.3, Python 3.4, or PyPy.
60 endef
61
62 define Package/python3-gnupg/description
63 $(call Package/python-gnupg/description)
64
65 (Variant for Python3)
66 endef
67
68 $(eval $(call PyPackage,python-gnupg))
69 $(eval $(call BuildPackage,python-gnupg))
70
71 $(eval $(call Py3Package,python3-gnupg))
72 $(eval $(call BuildPackage,python3-gnupg))