From: icp1994 <icp1994@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: lua-language-server-3.3.1
Date: Mon, 27 Jun 2022 09:25:56 +0200 [thread overview]
Message-ID: <20220627072556.Rf1LnyqJE1jnlSm3tWnZ7EggsqcRzrTAOWT0mC3u3c4@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-37694@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1001 bytes --]
There is an updated 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: 2441 bytes --]
From 2b3e1d6b5dce1f95664c8c9b4d17b6e8fa2a0027 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 | 36 +++++++++++++++++++
2 files changed, 42 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..823e2edd02eb
--- /dev/null
+++ b/srcpkgs/lua-language-server/template
@@ -0,0 +1,36 @@
+# 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
+ case "$XBPS_TARGET_MACHINE" in
+ aarch64*|arm*) ./3rd/luamake/luamake -platform linux-arm64 rebuild;;
+ *) ./3rd/luamake/luamake rebuild;;
+ esac
+}
+
+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
+}
next prev parent reply other threads:[~2022-06-27 7:25 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-26 15:28 [PR PATCH] " icp1994
2022-06-27 7:25 ` icp1994 [this message]
2022-06-28 5:17 ` [PR PATCH] [Updated] " 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220627072556.Rf1LnyqJE1jnlSm3tWnZ7EggsqcRzrTAOWT0mC3u3c4@z \
--to=icp1994@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).