chiark / gitweb /
mlocate: Index home/ in addition to usr/
authorFredrik Fornwall <fredrik@fornwall.net>
Mon, 29 Feb 2016 17:33:44 +0000 (12:33 -0500)
committerFredrik Fornwall <fredrik@fornwall.net>
Mon, 29 Feb 2016 17:33:44 +0000 (12:33 -0500)
packages/mlocate/build.sh
packages/mlocate/conf.c.patch

index 7026c285e6daec65a68d2ace7712c9735cc5325c..3854fce125978b73b04d030d3dc88ad24eed6ddf 100644 (file)
@@ -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_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"
 TERMUX_PKG_SRCURL=https://fedorahosted.org/releases/m/l/mlocate/mlocate-${TERMUX_PKG_VERSION}.tar.xz
 
 CPPFLAGS+=" -DLINE_MAX=_POSIX2_LINE_MAX"
index 3bd28d8872e537d8ceb5492e53949ee618e77564..37ad76e978f4acd6d40efd787d8621a0885a8e62 100644 (file)
@@ -6,7 +6,7 @@ diff -u -r ../mlocate-0.26/src/conf.c ./src/conf.c
    if (conf_scan_root == NULL)
      {
 -      static char root[] = "/";
    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;
      }
  
        conf_scan_root = root;
      }