void-packages/srcpkgs/zls/template

30 lines
1.1 KiB
Bash

# Template file for 'zls'
pkgname=zls
version=0.10.0
revision=1
build_style=zig-build
short_desc="Zig language server"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/zigtools/zls"
_known_folders_gitrev="d13ba6137084e55f873f6afb67447fe8906cc951"
_tracy_gitrev="f493d4aa8ba8141d9680473fad007d8a6348628e"
distfiles="https://github.com/zigtools/zls/archive/refs/tags/${version}.tar.gz
https://github.com/ziglibs/known-folders/archive/${_known_folders_gitrev}.tar.gz
https://github.com/wolfpld/tracy/archive/${_tracy_gitrev}.tar.gz"
checksum="ad8c16721a10a55b759f0cd63243301565b948b1d48075e1fda89ccf264a2bdf
1fa1c5cb7da6c2ba76ae3c52602ce525ccbbf5741d1ca9c4d2687ff10333a0cf
84577b79a36566a777eec3cf2b596920a0c1d7b6c216d941c04ef967a727b041"
skip_extraction="${_known_folders_gitrev}.tar.gz ${_tracy_gitrev}.tar.gz"
post_extract() {
bsdtar xzf "$XBPS_SRCDISTDIR/$pkgname-$version/$_known_folders_gitrev.tar.gz" \
--strip-components=1 -C "$wrksrc/src/known-folders"
bsdtar xzf "$XBPS_SRCDISTDIR/$pkgname-$version/$_tracy_gitrev.tar.gz" \
--strip-components=1 -C "$wrksrc/src/tracy"
}
post_install() {
vlicense LICENSE
}