aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorMatthieu Coudron <886074+teto@users.noreply.github.com>2023-07-30 21:07:18 +0200
committerChristian Clason <c.clason@uni-graz.at>2023-08-13 11:26:59 +0200
commitbaed6439e22aa4d1302a0c2acb1eb4a5824b1d23 (patch)
tree86292aa04955ad8c4a91268e4f56236587ce39d8 /contrib
parentUpdate parsers: bash, c, cuda, wing (diff)
downloadnvim-treesitter-baed6439e22aa4d1302a0c2acb1eb4a5824b1d23.tar
nvim-treesitter-baed6439e22aa4d1302a0c2acb1eb4a5824b1d23.tar.gz
nvim-treesitter-baed6439e22aa4d1302a0c2acb1eb4a5824b1d23.tar.bz2
nvim-treesitter-baed6439e22aa4d1302a0c2acb1eb4a5824b1d23.tar.lz
nvim-treesitter-baed6439e22aa4d1302a0c2acb1eb4a5824b1d23.tar.xz
nvim-treesitter-baed6439e22aa4d1302a0c2acb1eb4a5824b1d23.tar.zst
nvim-treesitter-baed6439e22aa4d1302a0c2acb1eb4a5824b1d23.zip
ci: fix luarocks tag release process
bumped version of the action Co-authored-by: Marc Jakobi <mrcjkb89@outlook.com>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/nvim-treesitter-luarocks.template45
-rw-r--r--contrib/nvim-treesitter-scm-1.rockspec36
2 files changed, 81 insertions, 0 deletions
diff --git a/contrib/nvim-treesitter-luarocks.template b/contrib/nvim-treesitter-luarocks.template
new file mode 100644
index 000000000..3bb15d3b2
--- /dev/null
+++ b/contrib/nvim-treesitter-luarocks.template
@@ -0,0 +1,45 @@
+local git_ref = '$git_ref'
+local modrev = '$modrev'
+local specrev = '-1'
+
+local repo_url = '$repo_url'
+
+rockspec_format = '3.0'
+package = '$package'
+version = modrev .. specrev
+
+description = {
+ summary = 'Nvim Treesitter configurations and abstraction layer',
+ detailed = $detailed_description,
+ labels = { 'neovim' },
+ homepage = 'https://github.com/nvim-treesitter/nvim-treesitter',
+ license = 'Apache-2.0',
+}
+
+dependencies = {
+ 'lua >= 5.1',
+}
+
+-- source = file:///.
+
+source = {
+ url = repo_url .. '/archive/' .. git_ref .. '.zip',
+ dir = '$repo_name-' .. '$archive_dir_suffix',
+}
+
+build = {
+ type = 'make',
+ build_pass = false,
+ install_variables = {
+ INST_PREFIX='$(PREFIX)',
+ INST_BINDIR='$(BINDIR)',
+ INST_LIBDIR='$(LIBDIR)',
+ INST_LUADIR='$(LUADIR)',
+ INST_CONFDIR='$(CONFDIR)',
+ },
+ copy_directories = {
+ 'autoload',
+ 'plugin',
+ 'queries'
+ }
+}
diff --git a/contrib/nvim-treesitter-scm-1.rockspec b/contrib/nvim-treesitter-scm-1.rockspec
new file mode 100644
index 000000000..a901c5b12
--- /dev/null
+++ b/contrib/nvim-treesitter-scm-1.rockspec
@@ -0,0 +1,36 @@
+local MODREV, SPECREV = 'scm', '-1'
+rockspec_format = '3.0'
+package = 'nvim-treesitter'
+version = MODREV .. SPECREV
+
+description = {
+ summary = 'Nvim Treesitter configurations and abstraction layer',
+ labels = { 'neovim' },
+ homepage = 'https://github.com/nvim-treesitter/nvim-treesitter',
+ license = 'Apache-2.0',
+}
+
+dependencies = {
+ 'lua >= 5.1',
+}
+
+source = {
+ url = 'git://github.com/nvim-treesitter/nvim-treesitter',
+}
+
+build = {
+ type = 'make',
+ install_variables = {
+ INST_PREFIX='$(PREFIX)',
+ INST_BINDIR='$(BINDIR)',
+ INST_LIBDIR='$(LIBDIR)',
+ INST_LUADIR='$(LUADIR)',
+ INST_CONFDIR='$(CONFDIR)',
+ },
+ copy_directories = {
+ 'autoload',
+ 'doc',
+ 'plugin',
+ 'queries'
+ }
+}