add packaging script for pmar