bash: Source etc/bash.bashrc also for interactive login shells
[termux-packages] / packages / bash / build.sh
CommitLineData
59f0d218
FF
1TERMUX_PKG_HOMEPAGE=http://www.gnu.org/software/bash/
2TERMUX_PKG_DESCRIPTION="A sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh)"
3cc4ef71 3TERMUX_PKG_DEPENDS="ncurses, readline, libandroid-support, termux-tools, command-not-found"
59f0d218
FF
4_MAIN_VERSION=4.3
5_PATCH_VERSION=39
6TERMUX_PKG_VERSION=${_MAIN_VERSION}.${_PATCH_VERSION}
b428c1fc 7TERMUX_PKG_BUILD_REVISION=5
59f0d218
FF
8TERMUX_PKG_SRCURL=http://ftp.gnu.org/gnu/bash/bash-${_MAIN_VERSION}.tar.gz
9TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-multibyte --without-bash-malloc --with-installed-readline ac_cv_header_grp_h=no ac_cv_header_pwd_h=no ac_cv_rl_version=6.3"
10
11TERMUX_PKG_RM_AFTER_INSTALL="share/man/man1/bashbug.1 bin/bashbug"
12
13termux_step_pre_configure () {
14 cd $TERMUX_PKG_SRCDIR
15 for patch_number in `seq -f '%03g' ${_PATCH_VERSION}`; do
16 PATCHFILE=$TERMUX_PKG_CACHEDIR/bash_patch_${patch_number}.patch
17 test ! -f $PATCHFILE && curl "http://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-$patch_number" > $PATCHFILE
18 patch -p0 -i $PATCHFILE
19 done
20}
5b8bb72c
FF
21
22termux_step_post_make_install () {
23 sed "s|@TERMUX_PREFIX@|$TERMUX_PREFIX|" $TERMUX_PKG_BUILDER_DIR/etc-profile > $TERMUX_PREFIX/etc/profile
3cc4ef71
FF
24 # /etc/bash.bashrc - System-wide .bashrc file for interactive shells. (config-top.h in bash source, patched to enable):
25 sed "s|@TERMUX_PREFIX@|$TERMUX_PREFIX|" $TERMUX_PKG_BUILDER_DIR/etc-bash.bashrc > $TERMUX_PREFIX/etc/bash.bashrc
5b8bb72c 26}