#!/bin/bash . ./scripts/colors.sh . ./scripts/funcs.sh . ./scripts/config.sh bash() { pkgname=bash pkgver=5.2.32 printf "$GREEN** Building and installing bash\n$RESET" mkdir $build/${pkgname} cd $build/${pkgname} tar -xvf $root/downloads/${pkgname}-${pkgver}.tar.gz check $? "Extract ${pkgname}" cd ${pkgname}-${pkgver} ./configure \ --prefix=/usr \ --disable-readline \ --host=$CROSS_COMPILE check $? "Configure bash" make $makeflags check $? "Build bash" cp -v bash $rootfspath/usr/bin $CROSS_COMPILE-strip --strip-unneeded $rootfspath/usr/bin/bash check $? "Installing to rootfs bash" }