26 lines
994 B
Bash
26 lines
994 B
Bash
TERMUX_PKG_HOMEPAGE=https://www.gnupg.org/
|
|
TERMUX_PKG_DESCRIPTION="Implementation of the OpenPGP standard for encrypting and signing data and communication"
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
|
TERMUX_PKG_VERSION=2.2.14
|
|
TERMUX_PKG_SHA256=1bf9ed46dc1ec5d8cfa13ba1ad47f94981f3b6a7ec16ad9123cc2549c4cbf87b
|
|
TERMUX_PKG_SRCURL=https://www.gnupg.org/ftp/gcrypt/gnupg/gnupg-${TERMUX_PKG_VERSION}.tar.bz2
|
|
TERMUX_PKG_DEPENDS="libassuan,libbz2,libgcrypt,libksba,libsqlite,libnpth,readline,pinentry,libgpg-error"
|
|
TERMUX_PKG_CONFLICTS="gnupg2 (<< 2.2.9-1)"
|
|
TERMUX_PKG_REPLACES="gnupg2 (<< 2.2.9-1)"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
--disable-ldap
|
|
--enable-sqlite
|
|
--enable-tofu
|
|
"
|
|
# Remove non-english help files and man pages shipped with the gnupg (1) package:
|
|
TERMUX_PKG_RM_AFTER_INSTALL="share/gnupg/help.*.txt share/man/man1/gpg-zip.1 share/man/man7/gnupg.7"
|
|
|
|
termux_step_pre_configure() {
|
|
CPPFLAGS+=" -Ddn_skipname=__dn_skipname"
|
|
}
|
|
|
|
termux_step_post_make_install() {
|
|
cd $TERMUX_PREFIX/bin
|
|
ln -sf gpg gpg2
|
|
}
|