zsh: Add mapfile module (fixes #3116)

This commit is contained in:
Fredrik Fornwall 2018-12-10 01:36:57 +01:00
parent 73837fd071
commit 866662f658
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://www.zsh.org
TERMUX_PKG_DESCRIPTION="Shell with lots of features"
TERMUX_PKG_VERSION=5.6.2
TERMUX_PKG_REVISION=1
TERMUX_PKG_SHA256=a50bd66c0557e8eca3b8fa24e85d0de533e775d7a22df042da90488623752e9e
TERMUX_PKG_SRCURL=https://fossies.org/linux/misc/zsh-${TERMUX_PKG_VERSION}.tar.xz
# Remove hard link to bin/zsh as Android does not support hard links:
@ -29,7 +30,8 @@ termux_step_post_configure () {
# - The system module is needed by zplug (https://github.com/termux/termux-packages/issues/659).
# - The zpty module is needed by zsh-async (https://github.com/termux/termux-packages/issues/672).
# - The stat module is needed by zui (https://github.com/termux/termux-packages/issues/2829).
for module in files regex curses zprof socket system deltochar mathfunc zpty pcre stat; do
# - The mapfile module was requested in https://github.com/termux/termux-packages/issues/3116.
for module in files regex curses zprof socket system deltochar mathfunc zpty pcre stat mapfile; do
perl -p -i -e "s|${module}.mdd link=no|${module}.mdd link=static|" $TERMUX_PKG_BUILDDIR/config.modules
done
}