#!/bin/bash
set +h
set -e

cd $PKGDIR
patch -Np1 -i ../bash-4.2-fixes-11.patch
./configure --prefix=/usr                     \
            --bindir=/bin                     \
            --htmldir=/usr/share/doc/bash-4.2 \
            --without-bash-malloc             \
            --with-installed-readline
make
chown -Rv nobody . >> $TEST_LOG 2>&1
su nobody -s /bin/bash -c "PATH=$PATH make -k tests" >> $TEST_LOG 2>&1 || true
make install
echo -e "\n\nTotalseconds: $SECONDS\n"
exit
