这是indexloc提供的服务,不要输入任何密码
Skip to content

enhance(main/gpgme): build Python bindings #25336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/gpgme/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,19 @@ TERMUX_PKG_LICENSE="GPL-2.0, LGPL-2.1, MIT"
TERMUX_PKG_LICENSE_FILE="COPYING, COPYING.LESSER, LICENSES"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="1.24.3"
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=bfc17f5bd1b178c8649fdd918956d277080f33df006a2dc40acdecdce68c50dd
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="gnupg (>= 2.2.9-1), libassuan, libgpg-error"
TERMUX_PKG_BUILD_DEPENDS="swig"
TERMUX_PKG_BREAKS="gpgme-dev"
TERMUX_PKG_REPLACES="gpgme-dev"
TERMUX_PKG_PYTHON_COMMON_DEPS="Cython, hkp4py, pendulum, requests"
# Use "--disable-gpg-test" to avoid "No rule to make target `../../src/libgpgme-pthread.la":
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--disable-gpg-test
--enable-languages=cpp
--enable-languages=cpp,python
--with-gpg=$TERMUX_PREFIX/bin/gpg2
--without-g13
--without-gpgconf
Expand Down
5 changes: 5 additions & 0 deletions packages/gpgme/gpgme-python.subpackage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
TERMUX_SUBPKG_DESCRIPTION="Python bindings for GPGME"
TERMUX_SUBPKG_INCLUDE="
lib/python${TERMUX_PYTHON_VERSION}
"
TERMUX_SUBPKG_DEPENDS="python"