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_step_pre_configure() {
+ CPPFLAGS+=" -DLINE_MAX=_POSIX2_LINE_MAX"
+}
termux_step_create_debscripts () {
echo "mkdir -p $TERMUX_PREFIX/var/mlocate/" > postinst