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