abook: Fix mandir and 32-bit build
This commit is contained in:
parent
0296a37de4
commit
5e7f900d53
@ -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"
|
||||
|
21
packages/abook/filter.c.patch
Normal file
21
packages/abook/filter.c.patch
Normal file
@ -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
|
||||
}
|
||||
|
||||
/*
|
Loading…
x
Reference in New Issue
Block a user