PATCH_LIST="bash51-001 bash51-002 bash51-003 bash51-004 bash51-005 bash51-006 bash51-007 bash51-008 bash51-009 bash51-010 bash51-011 bash51-012 bash51-013 bash51-014 bash51-015 bash51-016 fix-build-nomb.diff" SRC_FETCH_METHOD="http" SRC_FETCH_PATH="http://ftp.gnu.org/gnu/bash/bash-${PKGVER}.tar.gz" MAKEDEPENDS=( 'ncurses-*:::*.so *.so.* *.h' 'readline-*:::*.so *.so.* *.h' ) PATCH_LEVEL=0 function do_config { # These options cannot be tested in cross-compile environment, let's force them # to same values as with native linux builds. CC="$CC" CXX="$CXX" LD="$LD" RANLIB="$RANLIB" AR="$AR" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" \ CFLAGS="$GCC_OPT_SMALL $GCC_ARCH_COMMON $GCC_CPU_COMMON" \ ./configure --prefix=/usr --bindir=/bin --sysconfdir=/etc --enable-alias --enable-arith-for-command --enable-array-variables --enable-brace-expansion --enable-command-timing --enable-cond-command --enable-cond-regexp --enable-debugger --enable-directory-stack --enable-dparen-arithmetic --enable-extended-glob --enable-history --enable-job-control --disable-multibyte --enable-net-redirections --enable-process-substitution --enable-progcomp --enable-prompt-string-decoding --enable-readline --enable-restricted --enable-select --enable-xpg-echo-default --disable-nls --with-installed-readline=$FLXROOTDIR/usr --without-bash-malloc --disable-rpath --build=$FLXHOST --host=$FLXTARG } function do_compile_only { # do not depend on libhistory.so since readline does it fine $FLXPMAKE RL_INCLUDEDIR='' HISTORY_LIB=-lreadline } function do_prepack { $FLXMAKE install prefix=$ROOTDIR/usr bindir=$ROOTDIR/bin sysconfdir=$ROOTDIR/etc cp doc/bash.1 doc/bashbug.1 doc/builtins.1 doc/rbash.1 $ROOTDIR/usr/man/man1/ cd $ROOTDIR/bin ln -s bash sh set_default_perm $ROOTDIR }