From f2548fb41b09d3020e9ac49e8b1047e725515ec2 Mon Sep 17 00:00:00 2001 From: Lazar Bulovan Date: Sat, 18 Jul 2026 11:47:33 +0200 Subject: [PATCH] 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. --- packages/tia-lsp/package.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 packages/tia-lsp/package.yaml diff --git a/packages/tia-lsp/package.yaml b/packages/tia-lsp/package.yaml new file mode 100644 index 0000000..be8f025 --- /dev/null +++ b/packages/tia-lsp/package.yaml @@ -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