/
template
33 lines (29 loc) · 1.06 KB
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Template file for 'lua-language-server'
pkgname=lua-language-server
version=3.4.0
revision=1
create_wrksrc=yes
hostmakedepends="ninja"
short_desc="Lua LSP implementation written in 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=d32a5c96169cd93b60a2d6dd079904f436eac2d5ba698d55a0f74d4c0c670f3e
do_build() {
ninja -C 3rd/luamake -f compile/ninja/linux.ninja
./3rd/luamake/luamake -platform ${XBPS_TARGET_MACHINE} 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
}