Initial tia-lsp package definition

Mason registry for the tia-lsp language server. Uses pkg:generic source
with a build script that clones the tagged release from Gitea and creates
a bin/tia-lsp wrapper script that runs the Lua LSP server.
This commit is contained in:
2026-07-18 11:47:33 +02:00
commit f2548fb41b
+26
View File
@@ -0,0 +1,26 @@
---
name: tia-lsp
description: Language server for Siemens TIA Portal languages (SCL, with planned STL/AWL, LAD, FBD support).
homepage: https://gitea.l-tech.rs/lazar/tia-lsp
licenses:
- MIT
languages:
- SCL
categories:
- LSP
source:
id: pkg:generic/tia-lsp@0.1.0
build:
run: |
git clone --depth 1 --branch v{{version}} https://gitea.l-tech.rs/lazar/tia-lsp.git tia-lsp-src
cp -r tia-lsp-src/src ./src
mkdir -p bin
cat > bin/tia-lsp << 'EOF'
#!/bin/bash
exec lua "$(dirname "$0")/../src/main.lua" "$@"
EOF
chmod +x bin/tia-lsp
bin:
tia-lsp: bin/tia-lsp