Update package version to 0.25.10
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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')"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user