1 # This is free software, licensed under the GNU General Public License v2.
2 # See /LICENSE for more information.
5 include $(TOPDIR
)/rules.mk
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
17 PKG_LICENSE_FILES
:=LICENSE
18 PKG_MAINTAINER
:=Daniel Golle
<daniel@makrotopia.org
>
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
)
23 include $(INCLUDE_DIR
)/package.mk
24 $(call include_mk
, python-package.mk
)
25 $(call include_mk
, python3-package.mk
)
27 define Package
/python-gnupg
/Default
31 URL
:=https
://github.com
/isislovecruft
/python-gnupg
35 define Package
/python-gnupg
36 $(call Package
/python-gnupg
/Default
)
38 DEPENDS
+=+PACKAGE_python-gnupg
:python-light
42 define Package
/python3-gnupg
43 $(call Package
/python-gnupg
/Default
)
45 DEPENDS
+=+PACKAGE_python3-gnupg
:python3-light
49 define Package
/python-gnupg
/description
50 A Python wrapper for GnuPG
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.
61 define Package
/python3-gnupg
/description
62 $(call Package
/python-gnupg
/description
)
67 define PyBuild
/Compile
68 $(call Build
/Compile
/PyMod
,,\
69 install --prefix="/usr" --root
="$(PKG_INSTALL_DIR)" \
73 define Py3Build
/Compile
74 $(call Build
/Compile
/Py3Mod
,,\
75 install --prefix="/usr" --root
="$(PKG_INSTALL_DIR)" \
80 $(eval
$(call PyPackage
,python-gnupg
))
81 $(eval
$(call BuildPackage
,python-gnupg
))
83 $(eval
$(call Py3Package
,python3-gnupg
))
84 $(eval
$(call BuildPackage
,python3-gnupg
))