<Bazel tree>/third_party/protobuf/<version>protobuf.bzl and the src/ directory:git clone http://github.com/google/protobuf.gitgit checkout <tag or commithash> (e.g. v3.0.0 or e8ae137)mkdir -p third_party/protobuf/<version>/src/google in the root of the Bazel tree.cp -R <root of protobuf tree>/src/google/protobuf third_party/protobuf/src/googlethird_party/protobuf/BUILD with the rules in the protobuf repository.Finally, update the rules:
third_party/protobuf/<version>/. Use the BUILD file for the previous version as a template. Update the cc_library rules to match the rules in the BUILD file in the protobuf repository. Also copy protobuf.bzl from the protobuf repository into third_party/protobuf/<version>/.third_party/protobuf/BUILD to point to the new rules.Follow usual procedure as described on https://www.bazel.build/contributing.html