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.
27 lines
601 B
YAML
27 lines
601 B
YAML
---
|
|
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
|