hammer.git: add _pkg_copy helper

Add _pkg_copy helper. This also enables native compilation of packages
integrated from git repositories.