add shell script to build the pkg automatically