tree-sitter-cli: initial commit, version 0.21.0

This commit is contained in:
Tim Biermann 2024-03-04 20:26:34 +01:00
parent 559d14a2dc
commit f912da45e7
Signed by: tb
GPG Key ID: 42F8B4E30B673606
3 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,3 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/tree-sitter

View File

@ -0,0 +1,5 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/V8bKhi1Wa3hWZONKFvXmnB1oa/G3KNYYOPncA5ZDLhp/anD6b7xHc3bYCBX3ajEfvT8rqWExRcjcHHvPMH8Wgw=
SHA256 (Pkgfile) = b40b40ce279cf03eeb1b6cdb1fd68bbc2777db4e2b7a34e528966fe16dfe6264
SHA256 (.footprint) = 13391980e2f7dcd45eecf9913327905ab225d031482889c7024f17b7c86049f7
SHA256 (tree-sitter-0.21.0-1.tar.gz) = 6bb60e5b63c1dc18aba57a9e7b3ea775b4f9ceec44cc35dac4634d26db4eb69c

20
tree-sitter-cli/Pkgfile Normal file
View File

@ -0,0 +1,20 @@
# Description: CLI tool for tree-sitter
# URL: https://github.com/tree-sitter/tree-sitter
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: rust tree-sitter
# Optional: nodejs
name=tree-sitter-cli
version=0.21.0
release=1
source=(https://github.com/tree-sitter/tree-sitter/archive/v$version/tree-sitter-$version-$release.tar.gz)
build() {
cd tree-sitter-$version/cli
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
[[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust
cargo build --release
install -Dt $PKG/usr/bin ../target/release/tree-sitter
}