third_party: rename build_files to $reponame.bzl

This enables IDEs to correctly identify the filetype

Change-Id: I9e2644514f001f94abe7da92c332f95889a34380
Reviewed-on: https://review.monogon.dev/c/monogon/+/3823
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
Tested-by: Jenkins CI
diff --git a/third_party/libpg_query/external/BUILD.bazel b/third_party/libpg_query/external/BUILD.bazel
deleted file mode 100644
index e69de29..0000000
--- a/third_party/libpg_query/external/BUILD.bazel
+++ /dev/null
diff --git a/third_party/libpg_query/external/BUILD.repo b/third_party/libpg_query/libpg_query.bzl
similarity index 98%
rename from third_party/libpg_query/external/BUILD.repo
rename to third_party/libpg_query/libpg_query.bzl
index b362e34..1a2486b 100644
--- a/third_party/libpg_query/external/BUILD.repo
+++ b/third_party/libpg_query/libpg_query.bzl
@@ -9,15 +9,6 @@
     srcs = glob([
         "src/*.c",
         "src/*.h",
-
-        "vendor/protobuf-c/protobuf-c.h",
-        "vendor/protobuf-c/protobuf-c.c",
-
-        "vendor/xxhash/xxhash.c",
-
-        "protobuf/pg_query.pb-c.c",
-        "protobuf/pg_query.pb-c.h",
-
         "src/postgres/include/*.h",
         "src/postgres/include/**/*.h",
     ], [
@@ -29,7 +20,13 @@
         "src/pg_query_readfuncs_defs.c",
         "src/pg_query_readfuncs_conds.c",
         "src/pg_query_json_helper.c",
-    ]),
+    ]) + [
+        "vendor/protobuf-c/protobuf-c.h",
+        "vendor/protobuf-c/protobuf-c.c",
+        "vendor/xxhash/xxhash.c",
+        "protobuf/pg_query.pb-c.c",
+        "protobuf/pg_query.pb-c.h",
+    ],
     textual_hdrs = [
         "src/pg_query_enum_defs.c",
         "src/pg_query_fingerprint_defs.c",