blob: ccd2b776abd26c8f293b7ffeac539c9c6d10944a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
MAKEDEPS="make "
DEPS="musl"
PKG_VER=0.20.6
SOURCE=https://github.com/tree-sitter/tree-sitter/archive/v$PKG_VER/tree-sitter-$PKG_VER.tar.gz
DESC="Incremental parsing system for programming tools"
prepare () {
cargo fetch --locked
}
build () {
make
cargo build -p tree-sitter-cli --frozen --release
}
package () {
make DESTDIR=$PKG_DEST PREFIX=/usr install
install -D -m755 target/release/tree-sitter $PKG_DEST/usr/bin/
}
|