Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: lua-language-server-3.3.1
@ 2022-06-26 15:28 icp1994
  2022-06-27  7:25 ` [PR PATCH] [Updated] " icp1994
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: icp1994 @ 2022-06-26 15:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 996 bytes --]

There is a new pull request by icp1994 against master on the void-packages repository

https://github.com/icp1994/void-packages lua-language-server
https://github.com/void-linux/void-packages/pull/37694

New package: lua-language-server-3.3.1
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64

Fixes https://github.com/void-linux/void-packages/issues/34436. I couldn't figure out a predefined `build-style` that would work for this. So it's likely missing flags required for cross-compilation as there is no `do_configure()`. I didn't put a separate `do_test()` since the tests seem to be running during the build phase itself. I tested via `lspconfig` in neovim  and it works as expected.

A patch file from https://github.com/void-linux/void-packages/pull/37694.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-lua-language-server-37694.patch --]
[-- Type: text/x-diff, Size: 2321 bytes --]

From 2f29cc91d3e3c58f7135029b9b20de51a49e0b4a Mon Sep 17 00:00:00 2001
From: icp <pangolin@vivaldi.net>
Date: Sun, 26 Jun 2022 20:46:46 +0530
Subject: [PATCH] New package: lua-language-server-3.3.1

---
 .../files/lua-language-server                 |  6 ++++
 srcpkgs/lua-language-server/template          | 33 +++++++++++++++++++
 2 files changed, 39 insertions(+)
 create mode 100644 srcpkgs/lua-language-server/files/lua-language-server
 create mode 100644 srcpkgs/lua-language-server/template

diff --git a/srcpkgs/lua-language-server/files/lua-language-server b/srcpkgs/lua-language-server/files/lua-language-server
new file mode 100644
index 000000000000..e14e3b04a353
--- /dev/null
+++ b/srcpkgs/lua-language-server/files/lua-language-server
@@ -0,0 +1,6 @@
+#!/usr/bin/env sh
+
+STATE_PATH=${XDG_STATE_HOME:-$HOME/.local/state}/lua-language-server
+
+exec /usr/lib/lua-language-server/bin/lua-language-server /usr/lib/lua-language-server/main.lua \
+	--logpath="$STATE_PATH/log" --metapath="$STATE_PATH/meta" "$@"
diff --git a/srcpkgs/lua-language-server/template b/srcpkgs/lua-language-server/template
new file mode 100644
index 000000000000..49002047d26d
--- /dev/null
+++ b/srcpkgs/lua-language-server/template
@@ -0,0 +1,33 @@
+# Template file for 'lua-language-server'
+pkgname=lua-language-server
+version=3.3.1
+revision=1
+create_wrksrc=yes
+hostmakedepends="ninja"
+short_desc="Lua Language Server coded by Lua"
+maintainer="icp <pangolin@vivaldi.net>"
+license="MIT"
+homepage="https://github.com/sumneko/lua-language-server"
+changelog="https://github.com/sumneko/lua-language-server/blob/master/changelog.md"
+distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}-submodules.zip"
+checksum=141716d786dd120cf0ec6ecba70d4c4842c942005dc670a11b7a1ddb69e24eef
+
+do_build() {
+	ninja -C 3rd/luamake -f compile/ninja/linux.ninja
+	./3rd/luamake/luamake rebuild
+}
+
+do_install() {
+	vinstall main.lua 644 usr/lib/${pkgname}
+	vinstall debugger.lua 644 usr/lib/${pkgname}
+	vinstall changelog.md 644 usr/lib/${pkgname}
+	vinstall bin/main.lua 644 usr/lib/${pkgname}/bin
+	vinstall bin/$pkgname 755 usr/lib/${pkgname}/bin
+
+	vcopy meta usr/lib/${pkgname}
+	vcopy locale usr/lib/${pkgname}
+	vcopy script usr/lib/${pkgname}
+
+	vbin ${FILESDIR}/lua-language-server
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2022-07-23  9:30 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-26 15:28 [PR PATCH] New package: lua-language-server-3.3.1 icp1994
2022-06-27  7:25 ` [PR PATCH] [Updated] " icp1994
2022-06-28  5:17 ` icp1994
2022-06-28  5:21 ` icp1994
2022-07-02 10:11 ` [PR PATCH] [Updated] " icp1994
2022-07-06  9:49 ` [PR PATCH] [Updated] New package: lua-language-server-3.4.0 icp1994
2022-07-20 19:02 ` New package: lua-language-server-3.4.2 motorto
2022-07-20 19:03 ` motorto
2022-07-22 18:46 ` [PR PATCH] [Updated] " icp1994
2022-07-22 19:08 ` icp1994
2022-07-23  8:43 ` [PR REVIEW] New package: lua-language-server-3.5.0 tranzystorek-io
2022-07-23  8:53 ` classabbyamp
2022-07-23  8:54 ` classabbyamp
2022-07-23  9:18 ` icp1994
2022-07-23  9:19 ` classabbyamp
2022-07-23  9:23 ` [PR PATCH] [Updated] " icp1994
2022-07-23  9:30 ` [PR PATCH] [Merged]: " classabbyamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).