From f912da45e72e67400a778e61b9a6b1bc49bddcf8 Mon Sep 17 00:00:00 2001 From: Tim Biermann Date: Mon, 4 Mar 2024 20:26:34 +0100 Subject: [PATCH] tree-sitter-cli: initial commit, version 0.21.0 --- tree-sitter-cli/.footprint | 3 +++ tree-sitter-cli/.signature | 5 +++++ tree-sitter-cli/Pkgfile | 20 ++++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 tree-sitter-cli/.footprint create mode 100644 tree-sitter-cli/.signature create mode 100644 tree-sitter-cli/Pkgfile diff --git a/tree-sitter-cli/.footprint b/tree-sitter-cli/.footprint new file mode 100644 index 000000000..a861ef787 --- /dev/null +++ b/tree-sitter-cli/.footprint @@ -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 diff --git a/tree-sitter-cli/.signature b/tree-sitter-cli/.signature new file mode 100644 index 000000000..86943f2b5 --- /dev/null +++ b/tree-sitter-cli/.signature @@ -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 diff --git a/tree-sitter-cli/Pkgfile b/tree-sitter-cli/Pkgfile new file mode 100644 index 000000000..fb7d18be3 --- /dev/null +++ b/tree-sitter-cli/Pkgfile @@ -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 +}