From 08a9993c661f525b89b24be2eef96d7ac409e931 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 29 Feb 2016 12:33:44 -0500 Subject: [PATCH] mlocate: Index home/ in addition to usr/ --- packages/mlocate/build.sh | 1 + packages/mlocate/conf.c.patch | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/mlocate/build.sh b/packages/mlocate/build.sh index 7026c285..3854fce1 100644 --- a/packages/mlocate/build.sh +++ b/packages/mlocate/build.sh @@ -1,6 +1,7 @@ TERMUX_PKG_HOMEPAGE=https://fedorahosted.org/mlocate/ TERMUX_PKG_DESCRIPTION="Tool to find files anywhere in the filesystem based on their name" TERMUX_PKG_VERSION=0.26 +TERMUX_PKG_BUILD_REVISION=1 TERMUX_PKG_SRCURL=https://fedorahosted.org/releases/m/l/mlocate/mlocate-${TERMUX_PKG_VERSION}.tar.xz CPPFLAGS+=" -DLINE_MAX=_POSIX2_LINE_MAX" diff --git a/packages/mlocate/conf.c.patch b/packages/mlocate/conf.c.patch index 3bd28d88..37ad76e9 100644 --- a/packages/mlocate/conf.c.patch +++ b/packages/mlocate/conf.c.patch @@ -6,7 +6,7 @@ diff -u -r ../mlocate-0.26/src/conf.c ./src/conf.c if (conf_scan_root == NULL) { - static char root[] = "/"; -+ static char root[] = "@TERMUX_PREFIX@"; ++ static char root[] = "/data/data/com.termux/files/"; conf_scan_root = root; } -- 2.11.0