summaryrefslogtreecommitdiff
path: root/tree-sitter-viml
diff options
context:
space:
mode:
authorTim Biermann <tbier@posteo.de>2022-11-27 17:59:16 +0000
committerTim Biermann <tbier@posteo.de>2022-11-27 18:02:43 +0000
commitcfdfa93087881164e697f161e302e333ce5549df (patch)
tree13317f4d02e7e31276cd568e13024559248ed4ba /tree-sitter-viml
parent4f4edfc87962b9e3a9b71f76c00f9e9463dc6b6c (diff)
downloadcontrib-cfdfa93087881164e697f161e302e333ce5549df.tar.gz
contrib-cfdfa93087881164e697f161e302e333ce5549df.tar.xz
tree-sitter-viml: initial commit, version 0.2.0
Diffstat (limited to 'tree-sitter-viml')
-rw-r--r--tree-sitter-viml/.footprint8
-rw-r--r--tree-sitter-viml/.signature5
-rw-r--r--tree-sitter-viml/Pkgfile24
3 files changed, 37 insertions, 0 deletions
diff --git a/tree-sitter-viml/.footprint b/tree-sitter-viml/.footprint
new file mode 100644
index 000000000..97b6e5b14
--- /dev/null
+++ b/tree-sitter-viml/.footprint
@@ -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
diff --git a/tree-sitter-viml/.signature b/tree-sitter-viml/.signature
new file mode 100644
index 000000000..75a238430
--- /dev/null
+++ b/tree-sitter-viml/.signature
@@ -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
diff --git a/tree-sitter-viml/Pkgfile b/tree-sitter-viml/Pkgfile
new file mode 100644
index 000000000..5002729cd
--- /dev/null
+++ b/tree-sitter-viml/Pkgfile
@@ -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
+}

Generated by cgit