Skip to content

Commit 2dc74e9

Browse files
committed
jq-lsp: init at 0.1.15
Fix #16660
1 parent fa6084f commit 2dc74e9

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

mingw-w64-jq-lsp/PKGBUILD

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Maintainer: Wu, Zhenyu <whenyu@ustc.edu>
2+
3+
_realname=jq-lsp
4+
pkgbase=mingw-w64-${_realname}
5+
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
6+
pkgver=0.1.15
7+
pkgrel=1
8+
pkgdesc="jq language server (mingw-w64)"
9+
arch=(any)
10+
mingw_arch=('ucrt64' 'clang64' 'clangarm64')
11+
url="https://github.com/wader/jq-lsp"
12+
license=('MIT')
13+
makedepends=("$MINGW_PACKAGE_PREFIX-go")
14+
# LTO renders GO BUILDID unreproducible: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108534
15+
options=(!lto)
16+
source=("${url}/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz")
17+
sha256sums=('34a693262ca1df0375701847962c43043ab4a2dd720ed637ce8f73d34243db97')
18+
19+
prepare() {
20+
cd "${_realname}-${pkgver}"
21+
mkdir -p build
22+
}
23+
24+
build() {
25+
cd "${_realname}-${pkgver}"
26+
go build \
27+
-trimpath \
28+
-buildmode=pie \
29+
-mod=readonly \
30+
-modcacherw \
31+
-ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
32+
-o build/jq-lsp.exe \
33+
.
34+
}
35+
36+
package() {
37+
cd "${_realname}-${pkgver}"
38+
install -Dm 755 "build/${_realname}.exe" -t "${pkgdir}/$MINGW_PREFIX/bin"
39+
install -Dm 644 LICENSE -t "${pkgdir}/$MINGW_PREFIX/share/licenses/${_realname}"
40+
}
41+
42+
# vim:set ts=2 sw=2 et:

0 commit comments

Comments
 (0)