tree-sitter-viml: initial commit, version 0.2.0
This commit is contained in:
parent
4f4edfc879
commit
cfdfa93087
8
tree-sitter-viml/.footprint
Normal file
8
tree-sitter-viml/.footprint
Normal file
@ -0,0 +1,8 @@
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/lib/
|
||||
-rw-r--r-- root/root usr/lib/libtree-sitter-viml.so
|
||||
drwxr-xr-x root/root usr/share/
|
||||
drwxr-xr-x root/root usr/share/nvim/
|
||||
drwxr-xr-x root/root usr/share/nvim/runtime/
|
||||
drwxr-xr-x root/root usr/share/nvim/runtime/parser/
|
||||
lrwxrwxrwx root/root usr/share/nvim/runtime/parser/viml.so -> /usr/lib/libtree-sitter-viml.so
|
5
tree-sitter-viml/.signature
Normal file
5
tree-sitter-viml/.signature
Normal file
@ -0,0 +1,5 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF3wmrInBqC5OcEFfFfkfEaUqwnTHSnEjWPIXl4lN8r60KWR9b5h4kMvicu75Y/SOqoyvLT4NgX1xUYjhCjNq1egI=
|
||||
SHA256 (Pkgfile) = cd0c896238d1531d833cbbd97f043d8c1c94a51e4a9e9406e35702466d7f16cf
|
||||
SHA256 (.footprint) = d54ff3e392ae984e50a236dc913c6ef827ab4e9496b58c5243d0c83c3983e6b9
|
||||
SHA256 (tree-sitter-viml-0.2.0.tar.gz) = 608dcc31a7948cb66ae7f45494620e2e9face1af75598205541f80d782ec4501
|
24
tree-sitter-viml/Pkgfile
Normal file
24
tree-sitter-viml/Pkgfile
Normal file
@ -0,0 +1,24 @@
|
||||
# Description: Tree-sitter parser for VimL
|
||||
# URL: https://github.com/vigoux/tree-sitter-viml
|
||||
# Maintainer: Tim Biermann, tbier at posteo dot de
|
||||
# Depends on: npm tree-sitter
|
||||
|
||||
name=tree-sitter-viml
|
||||
version=0.2.0
|
||||
release=1
|
||||
source=(https://github.com/vigoux/tree-sitter-viml/archive/v$version/$name-$version.tar.gz)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
|
||||
tree-sitter generate --log
|
||||
cd src
|
||||
export CFLAGS+=' -fPIC'
|
||||
cc $CFLAGS -std=c99 -c parser.c
|
||||
cc $CFLAGS -c scanner.c
|
||||
cc $LDFLAGS -shared parser.o scanner.o -o parser.so
|
||||
|
||||
install -Dm 644 parser.so $PKG/usr/lib/libtree-sitter-viml.so
|
||||
install -d $PKG/usr/share/nvim/runtime/parser/
|
||||
ln -s /usr/lib/libtree-sitter-viml.so $PKG/usr/share/nvim/runtime/parser/viml.so
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user