1 TERMUX_PKG_HOMEPAGE
=https
://pagure.io
/mlocate
2 TERMUX_PKG_DESCRIPTION
="Tool to find files anywhere in the filesystem based on their name"
3 # If not linking to libandroid-support we segfault in
4 # the libc mbsnrtowcs() function when using a wildcard
6 TERMUX_PKG_DEPENDS
="libandroid-support"
7 TERMUX_PKG_VERSION
=0.26
9 TERMUX_PKG_SRCURL
=https
://releases.pagure.org
/mlocate
/mlocate-
${TERMUX_PKG_VERSION}.
tar.xz
10 TERMUX_PKG_SHA256
=3063df79fe198fb9618e180c54baf3105b33d88fe602ff2d8570aaf944f1263e
12 termux_step_pre_configure
() {
13 CPPFLAGS
+=" -DLINE_MAX=_POSIX2_LINE_MAX"
16 termux_step_create_debscripts
() {
17 echo "#!$TERMUX_PREFIX/bin/sh" > postinst
18 echo "mkdir -p $TERMUX_PREFIX/var/mlocate/" >> postinst
19 echo "exit 0" >> postinst