# fss-0002

main:
  ./configure $CONF $SH_ONLY --with-curses --without-bash-malloc --with-installed-readline
  echo "#undef HAVE_BCOPY" >> config.h
  echo "#undef HAVE_BZERO" >> config.h
  echo "#undef BANG_HISTORY" >> config.h
  echo "#undef DEBUGGER" >> config.h
  echo "#undef HELP_BUILTIN" >> config.h
  sed -i -e 's|lcurses|lncurses|' Makefile
  make
  strip --strip-debug ./bash
  make install
  rm -Rf /lib/*.a /share/locale /bin/bashbug
  cp -vR ${PR}profile{,.d} /etc/
  cp -v ${PR}dircolors /etc/
  cp -v ${PR}bashrc /etc/
  chmod u+rwx,g+rx-w,o-rwx /lib/*.so*
  chgrp e_public /lib/*.so /bin/bash /etc/bashrc
  chgrp d_toolchain -R ${TC}include
  chmod u+rwx,g+rx-w,o-rwx -R /etc/profile{,.d}
  chgrp e_public -R /etc/{profile{,.d},dircolors}
  chmod o-rx -R /lib/*.so /bin/bash /etc/bashrc /etc/profile{,.d} /etc/{profile{,.d},dircolors}
