Introduction to GPGME
The GPGME package is a C library
that allows cryptography support to be added to a program. It is
designed to make access to public key crypto engines like
GnuPG or GpgSM easier for
applications. GPGME provides a
high-level crypto API for encryption, decryption, signing,
signature verification and key management.
Note
Development versions of BLFS may not build or run some packages
properly if dependencies have been updated since the most recent
stable versions of the book.
Package Information
Additional Downloads
GPGME Dependencies
Required
libassuan-2.5.5
Optional
Doxygen-1.9.6 and Graphviz-7.1.0 (for API documentation),
GnuPG-2.4.0 (required if Qt or SWIG are
installed; used during the test suite), Clisp-2.49,
Qt-5.15.8, and/or SWIG-4.1.1 (for
language bindings)
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/gpgme
Installation of GPGME
First, fix an issue building with Python 3.11 installed:
sed -e 's/3\.9/3.11/' \
-e 's/:3/:4/' \
-i configure
Apply a patch to fix build failure with SWIG and libgpg-error-1.46
or later:
patch -Np1 -i ../gpgme-1.18.0-gpg_error_1_46-1.patch
Install GPGME by running the
following commands:
./configure --prefix=/usr --disable-gpg-test &&
make
To test the results, you should have GnuPG-2.4.0 installed and
remove the --disable-gpg-test above. Issue:
make -k check.
Now, as the root
user:
make install