+termux_step_post_configure () {
+ # INSTALL file: "For a non-dynamic zsh, the default is to compile the complete, compctl, zle,
+ # computil, complist, sched, # parameter, zleparameter and rlimits modules into the shell,
+ # and you will need to edit config.modules to make any other modules available."
+ # Since we build zsh non-dynamically (since dynamic loading doesn't work on Android when enabled),
+ # we need to explicitly enable the additional modules we want.
+ # - The files module is needed by `compinstall`, see https://github.com/termux/termux-packages/issues/61:
+ # - The regex module seems to be used by several extensions.
+ perl -p -i -e "s|files.mdd link=no|files.mdd link=static|" $TERMUX_PKG_BUILDDIR/config.modules
+ perl -p -i -e "s|regex.mdd link=no|regex.mdd link=static|" $TERMUX_PKG_BUILDDIR/config.modules
+}
+