diff options
author | Tim Biermann <tbier@posteo.de> | 2022-11-27 17:59:17 +0000 |
---|---|---|
committer | Tim Biermann <tbier@posteo.de> | 2022-11-27 18:02:43 +0000 |
commit | 248c5953220fc9413448432162ed64990b488cfd (patch) | |
tree | 4d05cad95a250290b211986b1aa6a135e8924b11 /tree-sitter-vimdoc | |
parent | cfdfa93087881164e697f161e302e333ce5549df (diff) | |
download | contrib-248c5953220fc9413448432162ed64990b488cfd.tar.gz contrib-248c5953220fc9413448432162ed64990b488cfd.tar.xz |
tree-sitter-vimdoc: initial commit, version 1.2.5
Diffstat (limited to 'tree-sitter-vimdoc')
-rw-r--r-- | tree-sitter-vimdoc/.footprint | 8 | ||||
-rw-r--r-- | tree-sitter-vimdoc/.signature | 5 | ||||
-rw-r--r-- | tree-sitter-vimdoc/Pkgfile | 23 |
3 files changed, 36 insertions, 0 deletions
diff --git a/tree-sitter-vimdoc/.footprint b/tree-sitter-vimdoc/.footprint new file mode 100644 index 000000000..cf540e878 --- /dev/null +++ b/tree-sitter-vimdoc/.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-vimdoc.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/vimdoc.so -> /usr/lib/libtree-sitter-vimdoc.so diff --git a/tree-sitter-vimdoc/.signature b/tree-sitter-vimdoc/.signature new file mode 100644 index 000000000..d01dea388 --- /dev/null +++ b/tree-sitter-vimdoc/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF3x4Dz6p6sJEbNzokjw1Eko68QMrPRVOSIbrNwpmcPmux0eIZzsYZgQ0I/ao/uW1UkGtEc4f/Wz9NUvZ95SOrtwk= +SHA256 (Pkgfile) = bfb5a23ff2e52cb6c712bbf33eced7f6e8b25b662d4eb60b0e4a046317638e5a +SHA256 (.footprint) = 91a4386a9207d55af4390238c01ff839aa127e3a206f0b7f277bdd53750439cc +SHA256 (tree-sitter-vimdoc-1.2.5.tar.gz) = 379d764937a0e3a38e3f9ce9a62c93ba24211a236c74181dd04ee3b4631472a8 diff --git a/tree-sitter-vimdoc/Pkgfile b/tree-sitter-vimdoc/Pkgfile new file mode 100644 index 000000000..8950c08fc --- /dev/null +++ b/tree-sitter-vimdoc/Pkgfile @@ -0,0 +1,23 @@ +# Description: Tree-sitter parser for Vim help files +# URL: https://github.com/neovim/tree-sitter-vimdoc +# Maintainer: Tim Biermann, tbier at posteo dot de +# Depends on: npm tree-sitter + +name=tree-sitter-vimdoc +version=1.2.5 +release=1 +source=(https://github.com/neovim/tree-sitter-vimdoc/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 $LDFLAGS -shared parser.o -o parser.so + + install -Dm 644 parser.so $PKG/usr/lib/libtree-sitter-vimdoc.so + install -d $PKG/usr/share/nvim/runtime/parser/ + ln -s /usr/lib/libtree-sitter-vimdoc.so $PKG/usr/share/nvim/runtime/parser/vimdoc.so +} |