hopefully ideal gen.package.sh
control without size info, see comments in gen.package.sh