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_HASH
:=ef47b02eaf41dee3cf4b02ddf83130827318de9fe3eae89d01a3f05859e20e1a
16 PKG_LICENSE_FILES
:=LICENSE
17 PKG_MAINTAINER
:=Daniel Golle
<daniel@makrotopia.org
>
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(BUILD_VARIANT
)-$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_UNPACK
=$(HOST_TAR
) -C
$(PKG_BUILD_DIR
) --strip-components
=1 -xzf
$(DL_DIR
)/$(PKG_SOURCE
)
22 include $(INCLUDE_DIR
)/package.mk
23 $(call include_mk
, python-package.mk
)
24 $(call include_mk
, python3-package.mk
)
26 define Package
/python-gnupg
/Default
30 URL
:=https
://github.com
/isislovecruft
/python-gnupg
34 define Package
/python-gnupg
35 $(call Package
/python-gnupg
/Default
)
37 DEPENDS
+=+PACKAGE_python-gnupg
:python-light
41 define Package
/python3-gnupg
42 $(call Package
/python-gnupg
/Default
)
44 DEPENDS
+=+PACKAGE_python3-gnupg
:python3-light
48 define Package
/python-gnupg
/description
49 A Python wrapper for GnuPG
51 This module allows easy access to GnuPG.s key management
, encryption
52 and signature functionality from Python programs
, by interacting with
53 GnuPG through file descriptors. Input arguments are strictly checked
54 and sanitised
, and therefore this module should be safe to use in
55 networked applications requiring direct user input. It is intended for
56 use on Windows
, MacOS X
, BSD
, or Linux
, with Python
2.6, Python
2.7,
57 Python
3.3, Python
3.4, or PyPy.
60 define Package
/python3-gnupg
/description
61 $(call Package
/python-gnupg
/description
)
66 define PyBuild
/Compile
67 $(call Build
/Compile
/PyMod
,,\
68 install --prefix="/usr" --root
="$(PKG_INSTALL_DIR)" \
72 define Py3Build
/Compile
73 $(call Build
/Compile
/Py3Mod
,,\
74 install --prefix="/usr" --root
="$(PKG_INSTALL_DIR)" \
79 $(eval
$(call PyPackage
,python-gnupg
))
80 $(eval
$(call BuildPackage
,python-gnupg
))
82 $(eval
$(call Py3Package
,python3-gnupg
))
83 $(eval
$(call BuildPackage
,python3-gnupg
))