added 2 more parameters to hook scripts ( new pkgMeta and old pkgMeta )
enabling devs to create more skilful scripts