22 lines
620 B
Plaintext
22 lines
620 B
Plaintext
# Description: An incremental parsing system for programming tools
|
|
# URL: https://github.com/tree-sitter/tree-sitter
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: rust
|
|
|
|
name=tree-sitter
|
|
version=0.20.10
|
|
release=1
|
|
_commit=c51896d32dcc11a38e41f36e3deb1a6a9c4f4b14
|
|
source=(https://github.com/tree-sitter/tree-sitter/archive/$_commit/$name-$version.tar.gz)
|
|
|
|
build() {
|
|
cd $name-$_commit
|
|
|
|
cargo fetch --locked
|
|
make
|
|
cargo build --release --locked --offline --all-features --manifest-path cli/Cargo.toml
|
|
|
|
make DESTDIR=$PKG PREFIX=/usr install
|
|
install -Dm 755 target/release/$name -t $PKG/usr/bin
|
|
}
|