diff --git a/packages/pinentry/build.sh b/packages/pinentry/build.sh index 222c12985..c975a06a9 100644 --- a/packages/pinentry/build.sh +++ b/packages/pinentry/build.sh @@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://www.gnupg.org/related_software/pinentry/index.html TERMUX_PKG_DESCRIPTION="Dialog allowing secure password entry" TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_VERSION=1.1.0 -TERMUX_PKG_REVISION=1 +TERMUX_PKG_REVISION=2 TERMUX_PKG_SHA256=68076686fa724a290ea49cdf0d1c0c1500907d1b759a3bcbfbec0293e8f56570 TERMUX_PKG_SRCURL=https://www.gnupg.org/ftp/gcrypt/pinentry/pinentry-${TERMUX_PKG_VERSION}.tar.bz2 TERMUX_PKG_DEPENDS="libandroid-support, libassuan, ncurses" diff --git a/packages/pinentry/pinentry-emacs.c.patch b/packages/pinentry/pinentry-emacs.c.patch new file mode 100644 index 000000000..e605324e9 --- /dev/null +++ b/packages/pinentry/pinentry-emacs.c.patch @@ -0,0 +1,12 @@ +diff -uNr pinentry-1.1.0/pinentry/pinentry-emacs.c pinentry-1.1.0.mod/pinentry/pinentry-emacs.c +--- pinentry-1.1.0/pinentry/pinentry-emacs.c 2017-12-03 18:13:05.000000000 +0200 ++++ pinentry-1.1.0.mod/pinentry/pinentry-emacs.c 2019-03-01 18:38:36.250899637 +0200 +@@ -134,7 +134,7 @@ + } + else + #endif +- tmpdir = "/tmp"; ++ tmpdir = "@TERMUX_PREFIX@/tmp"; + } + + socket_name_storage = malloc (strlen (tmpdir)