From 8a099029c7721ba8fd9adab51dc7be7215b7d3f4 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sat, 17 Jan 2026 16:39:55 +0200 Subject: [PATCH] Update package version to 0.5.2 --- pkg.info | 4 ++-- source-files/fix-cmake-install.patch | 22 ++++++++++++++++++++++ source.sh | 3 +++ 3 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 source-files/fix-cmake-install.patch diff --git a/pkg.info b/pkg.info index ae341c4..8cccfb2 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: tree-sitter-markdown description: Markdown grammar for tree-sitter -version: 0.5.1 +version: 0.5.2 revision: 1 url: https://github.com/tree-sitter-grammars/tree-sitter-markdown license: MIT @@ -15,4 +15,4 @@ downloads: - url: https://github.com/tree-sitter-grammars/tree-sitter-markdown/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz extract_to: ${BPM_SOURCE} extract_strip_components: 1 - checksum: acaffe5a54b4890f1a082ad6b309b600b792e93fc6ee2903d022257d5b15e216 + checksum: 122be47d4a50ac75a4f6861a17c3c88144197e0949f5d83ca917f2382b37761b diff --git a/source-files/fix-cmake-install.patch b/source-files/fix-cmake-install.patch new file mode 100644 index 0000000..6cb5f18 --- /dev/null +++ b/source-files/fix-cmake-install.patch @@ -0,0 +1,22 @@ +From 40e7ad7b1ae05a1ea1848cedfe8f3bd853f27ff2 Mon Sep 17 00:00:00 2001 +From: Konstantin Podsvirov +Date: Sun, 11 Jan 2026 21:26:17 +0300 +Subject: [PATCH] fix: cmake --install + +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 5d8b4c1..561fdfb 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -52,7 +52,7 @@ macro(add_parser name) + configure_file("${CMAKE_CURRENT_SOURCE_DIR}/bindings/c/tree-sitter-${name}.pc.in" + "${CMAKE_CURRENT_BINARY_DIR}/tree-sitter-${name}.pc" @ONLY) + +- install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/bindings/c/tree-sitter-${name}.h" ++ install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/bindings/c/tree-sitter/tree-sitter-${name}.h" + DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/tree_sitter") + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/tree-sitter-${name}.pc" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") diff --git a/source.sh b/source.sh index 43a695e..ee17bef 100644 --- a/source.sh +++ b/source.sh @@ -5,6 +5,9 @@ # The prepare function is executed in the root of the temp directory # This function is used for putting downloaded files to the correct location or applying patches prepare() { + cd "$BPM_SOURCE" + patch -Np1 -i "$BPM_WORKDIR"/fix-cmake-install.patch + cd "$BPM_SOURCE"/tree-sitter-markdown tree-sitter generate src/grammar.json cd "$BPM_SOURCE"/tree-sitter-markdown-inline