new package: pinentry-gtk - same as 'pinentry' from termux-packages but with gtk2 support
This commit is contained in:
parent
df8834b33d
commit
99c85b282f
22
x11-packages/pinentry-gtk/build.sh
Normal file
22
x11-packages/pinentry-gtk/build.sh
Normal file
@ -0,0 +1,22 @@
|
||||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr"
|
||||
|
||||
TERMUX_PKG_HOMEPAGE=https://www.gnupg.org/related_software/pinentry/index.html
|
||||
TERMUX_PKG_DESCRIPTION="Dialog allowing secure password entry (with gtk2 support)"
|
||||
TERMUX_PKG_VERSION=1.1.0
|
||||
TERMUX_PKG_SHA256=68076686fa724a290ea49cdf0d1c0c1500907d1b759a3bcbfbec0293e8f56570
|
||||
TERMUX_PKG_SRCURL=https://www.gnupg.org/ftp/gcrypt/pinentry/pinentry-${TERMUX_PKG_VERSION}.tar.bz2
|
||||
TERMUX_PKG_DEPENDS="atk, fontconfig, freetype, gdk-pixbuf, glib, gtk2, libandroid-shmem, libandroid-support, libassuan, libcairo-x, libgpg-error, ncurses, pango-x"
|
||||
|
||||
TERMUX_PKG_CONFLICTS="pinentry"
|
||||
TERMUX_PKG_REPLACES="pinentry"
|
||||
TERMUX_PKG_PROVIDES="pinentry"
|
||||
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||
--disable-pinentry-fltk
|
||||
--disable-pinentry-qt5
|
||||
--enable-pinentry-gtk2
|
||||
"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
export LIBS="-landroid-shmem"
|
||||
}
|
14
x11-packages/pinentry-gtk/pinentry-pinentry.c.patch
Normal file
14
x11-packages/pinentry-gtk/pinentry-pinentry.c.patch
Normal file
@ -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);
|
Loading…
Reference in New Issue
Block a user