From bbe63da239d3a62d4006200ef37aafa3ed89f44b Mon Sep 17 00:00:00 2001 From: EnumDev Date: Mon, 29 Sep 2025 09:30:55 +0300 Subject: [PATCH] Update package version to 0.25.10 --- pkg.info | 21 +++++++++++++++++---- source.sh | 8 +------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/pkg.info b/pkg.info index cd39397..fe4b38a 100644 --- a/pkg.info +++ b/pkg.info @@ -1,14 +1,27 @@ name: tree-sitter description: An incremental parsing system for programming tools -version: 0.25.9 +version: 0.25.10 +revision: 1 url: https://github.com/tree-sitter/tree-sitter license: MIT architecture: any -make_depends: ["cmake","rustc"] type: source +make_depends: + - cmake + - rustc +downloads: + - url: https://github.com/tree-sitter/tree-sitter/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz + extract_to_bpm_source: true + extract_strip_components: 1 + checksum: ad5040537537012b16ef6e1210a572b927c7cdc2b99d1ee88d44a7dcdc3ff44c split_packages: - name: tree-sitter + description: "" + version: "" - name: tree-sitter-cli description: CLI tool for tree-sitter - depends: ["gcc-libs"] - optional_depends: ["nodejs"] + version: "" + depends: + - gcc-libs + optional_depends: + - nodejs diff --git a/source.sh b/source.sh index 16e7d6f..0142e8d 100644 --- a/source.sh +++ b/source.sh @@ -2,15 +2,9 @@ # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT -DOWNLOAD="https://github.com/tree-sitter/tree-sitter/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz" -FILENAME="${DOWNLOAD##*/}" - # The prepare function is executed in the root of the temp directory -# This function is used for downloading files and putting them into the correct location +# This function is used for putting downloaded files to the correct location or applying patches prepare() { - wget "$DOWNLOAD" - tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" - cd "$BPM_SOURCE"/cli cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" }