Browse Source

zsh: add zsh/zselect module (#4940)

build-on-device
Leonid Plyushch 5 years ago
committed by GitHub
parent
commit
ea50b04519
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      packages/zsh/build.sh

6
packages/zsh/build.sh

@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://www.zsh.org
TERMUX_PKG_DESCRIPTION="Shell with lots of features"
TERMUX_PKG_LICENSE="BSD"
TERMUX_PKG_VERSION=5.8
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://fossies.org/linux/misc/zsh-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=dcc4b54cc5565670a65581760261c163d720991f0d06486da61f8d839b52de27
# Remove hard link to bin/zsh as Android does not support hard links:
@ -37,7 +38,10 @@ termux_step_post_configure() {
# - 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).
# - 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
# - The zselect module is used by multiple plugins (https://github.com/termux/termux-packages/issues/4939)
for module in \
curses deltochar files mapfile mathfunc pcre regex socket stat system zprof zpty zselect
do
perl -p -i -e "s|${module}.mdd link=no|${module}.mdd link=static|" $TERMUX_PKG_BUILDDIR/config.modules
done
}

Loading…
Cancel
Save