# replace $CARCH == pentium4 to i686 if [ "${CARCH}" = "pentium4" ]; then eval "$( declare -f package | \ sed ' s/$CARCH/i686/g ' )" fi