summaryrefslogtreecommitdiff
path: root/repo/tree-sitter/tree-sitter.xibuild
blob: b0c0ffe3e10bb989abdb1eb3d08062212c6a6f59 (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.7
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/
}