From 5e7f900d5321347f8df36f338cc0e7a4b73a3c6e Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Tue, 9 Aug 2016 16:05:23 -0400 Subject: [PATCH] abook: Fix mandir and 32-bit build --- packages/abook/build.sh | 1 + packages/abook/filter.c.patch | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 packages/abook/filter.c.patch diff --git a/packages/abook/build.sh b/packages/abook/build.sh index da6065aa1..aa1b613d5 100644 --- a/packages/abook/build.sh +++ b/packages/abook/build.sh @@ -3,3 +3,4 @@ TERMUX_PKG_DESCRIPTION="Abook is a text-based addressbook program designed to us TERMUX_PKG_VERSION=0.6.0pre2 TERMUX_PKG_SRCURL=http://abook.sourceforge.net/devel/abook-$TERMUX_PKG_VERSION.tar.gz TERMUX_PKG_DEPENDS="libandroid-support, ncurses, readline" +TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--mandir=$TERMUX_PREFIX/share/man" diff --git a/packages/abook/filter.c.patch b/packages/abook/filter.c.patch new file mode 100644 index 000000000..e3758966a --- /dev/null +++ b/packages/abook/filter.c.patch @@ -0,0 +1,21 @@ +diff -u -r ../abook-0.6.0pre2/filter.c ./filter.c +--- ../abook-0.6.0pre2/filter.c 2006-09-06 01:26:10.000000000 -0400 ++++ ./filter.c 2016-08-09 15:02:24.050415314 -0400 +@@ -146,6 +146,9 @@ + get_real_name() + { + char *username = getenv("USER"); ++#ifdef __ANDROID__ ++ return xstrdup(username); ++#else + struct passwd *pwent; + int rtn; + char *tmp; +@@ -161,6 +164,7 @@ + return xstrdup(username); + } else + return tmp; ++#endif + } + + /*