From 64ffad6a2b9f43bd6f88cbf88793ac16455b2822 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Wed, 20 Jan 2016 17:25:30 -0500 Subject: [PATCH] pinentry: Add package --- packages/pinentry/build.sh | 5 +++++ packages/pinentry/pinentry-pinentry.c.patch | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 packages/pinentry/build.sh create mode 100644 packages/pinentry/pinentry-pinentry.c.patch diff --git a/packages/pinentry/build.sh b/packages/pinentry/build.sh new file mode 100644 index 000000000..3a7a7c891 --- /dev/null +++ b/packages/pinentry/build.sh @@ -0,0 +1,5 @@ +TERMUX_PKG_HOMEPAGE=https://www.gnupg.org/related_software/pinentry/index.html +TERMUX_PKG_DESCRIPTION="Dialog allowing secure password entry" +TERMUX_PKG_VERSION=0.9.7 +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-pinentry.c.patch b/packages/pinentry/pinentry-pinentry.c.patch new file mode 100644 index 000000000..ca95e0927 --- /dev/null +++ b/packages/pinentry/pinentry-pinentry.c.patch @@ -0,0 +1,14 @@ +diff -u -r ../pinentry-0.9.7/pinentry/pinentry.c ./pinentry/pinentry.c +--- ../pinentry-0.9.7/pinentry/pinentry.c 2015-09-16 14:47:52.000000000 -0400 ++++ ./pinentry/pinentry.c 2016-01-20 16:28:14.364196578 -0500 +@@ -213,8 +213,10 @@ + { + if (! lc_ctype_unknown_warning) + { ++#ifndef __ANDROID__ + fprintf (stderr, "%s: no LC_CTYPE known - assuming UTF-8\n", + this_pgmname); ++#endif + lc_ctype_unknown_warning = 1; + } + return strdup (text);