3619926bc1
And fix so that configure script can find libusb headers. This makes it possible to access smartcards with gpg/scdaemon when running as root. It is not without flaws though, the gpg-agent daemon has to be manually stopped sometimes to make the card appear. Also seems quite hard to get some things to work when running gpg-agent and scdaemon as root: I haven't been able to do remote forwarding or sig git commits.
29 lines
1.1 KiB
Bash
29 lines
1.1 KiB
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_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION=2.3.3
|
|
TERMUX_PKG_REVISION=2
|
|
TERMUX_PKG_SRCURL=https://www.gnupg.org/ftp/gcrypt/gnupg/gnupg-${TERMUX_PKG_VERSION}.tar.bz2
|
|
TERMUX_PKG_SHA256=5789b86da6a1a6752efb38598f16a77af51170a8494039c3842b085032e8e937
|
|
TERMUX_PKG_DEPENDS="libassuan, libbz2, libgcrypt, libgnutls, libgpg-error, libksba, libnpth, libsqlite, readline, pinentry, resolv-conf, zlib"
|
|
TERMUX_PKG_CONFLICTS="gnupg2 (<< 2.2.9-1), dirmngr (<< 2.2.17-1)"
|
|
TERMUX_PKG_REPLACES="gnupg2 (<< 2.2.9-1), dirmngr (<< 2.2.17-1)"
|
|
TERMUX_PKG_SUGGESTS="scdaemon"
|
|
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
|
|
}
|