2017-03-02 11:53:39 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://pagure.io/mlocate
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="Tool to find files anywhere in the filesystem based on their name"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2017-09-23 10:25:54 +02:00
|
|
|
# If not linking to libandroid-support we segfault in
|
|
|
|
# the libc mbsnrtowcs() function when using a wildcard
|
|
|
|
# like in '*.deb'.
|
|
|
|
TERMUX_PKG_DEPENDS="libandroid-support"
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_VERSION=0.26
|
2017-09-23 10:25:54 +02:00
|
|
|
TERMUX_PKG_REVISION=3
|
2017-03-02 11:53:39 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://releases.pagure.org/mlocate/mlocate-${TERMUX_PKG_VERSION}.tar.xz
|
|
|
|
TERMUX_PKG_SHA256=3063df79fe198fb9618e180c54baf3105b33d88fe602ff2d8570aaf944f1263e
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2016-09-04 00:45:08 +02:00
|
|
|
termux_step_pre_configure() {
|
|
|
|
CPPFLAGS+=" -DLINE_MAX=_POSIX2_LINE_MAX"
|
|
|
|
}
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_create_debscripts() {
|
2017-08-15 07:09:08 +02:00
|
|
|
echo "#!$TERMUX_PREFIX/bin/sh" > postinst
|
|
|
|
echo "mkdir -p $TERMUX_PREFIX/var/mlocate/" >> postinst
|
2015-06-13 01:03:31 +02:00
|
|
|
echo "exit 0" >> postinst
|
|
|
|
chmod 0755 postinst
|
|
|
|
}
|