Here's a version of 3.3.0_unpack.sh that runs on Macs, and hopefully doesn't break on Linux.
The fix is trivial; mktemp takes different arguments. Linux's mktemp might even take the same arguments.
Code:
case `uname -s` in
Darwin)
SCRATCH=`mktemp -d -t patch32lsb_XXXX`
;;
Linux)
SCRATCH=`mktemp -d --tmpdir patch32lsb_XXXX`
;;
esac
trap 'echo "Cleaning up $SCRATCH"; rm -r $SCRATCH' EXIT