# Template file for 'asm-lsp'
pkgname=asm-lsp
version=0.10.0
revision=1
build_style=cargo
hostmakedepends="pkg-config"
makedepends="openssl-devel libzstd-devel"
short_desc="Language server for NASM/GAS/GO Assembly"
maintainer="Mihail Ivanchev <contact@ivanchev.net>"
license="BSD-2-Clause"
homepage="https://github.com/bergercookie/asm-lsp"
changelog="https://github.com/bergercookie/asm-lsp/releases"
distfiles="https://github.com/bergercookie/asm-lsp/archive/refs/tags/v${version}.tar.gz"
checksum=4755848aa7d88856be7e40d0930990b95b46c4593a53db3809d3ba7214d9d16d

do_install() {
	# Manual install due to an "found a virtual manifest at ... instead of a package manifest"
	# error.
	cargo auditable install --target ${RUST_TARGET} --root="${DESTDIR}/usr" \
		--offline --locked --path asm-lsp
	rm -f "${DESTDIR}"/usr/.crates.toml
	rm -f "${DESTDIR}"/usr/.crates2.json
}

post_install() {
	vlicense LICENSE
}
