void-packages/srcpkgs/tinymist/template
2025-07-29 22:48:09 -04:00

31 lines
941 B
Bash

# Template file for 'tinymist'
pkgname=tinymist
version=0.13.16
revision=1
build_style=cargo
build_helper="qemu"
configure_args="--features=cli --bin tinymist --bin typlite"
depends="typst"
short_desc="Integrated language service for Typst"
maintainer="classabbyamp <void@placeviolette.net>"
license="Apache-2.0"
homepage="https://myriad-dreamin.github.io/tinymist/"
changelog="https://github.com/Myriad-Dreamin/tinymist/releases"
distfiles="https://github.com/Myriad-Dreamin/tinymist/archive/refs/tags/v${version}.tar.gz"
checksum=e97c018b452d864256ab3cdae34cfa77be6b3fffefc34fa63da08e0ca92f0125
# takes forever
make_check=no
if [ "$XBPS_TARGET_WORDSIZE" -eq 32 ]; then
broken="atomic64"
fi
do_install() {
vbin target/${RUST_TARGET}/release/tinymist
vbin target/${RUST_TARGET}/release/typlite
for sh in bash fish zsh; do
vtargetrun "${DESTDIR}"/usr/bin/tinymist completion "$sh" > "comp.$sh"
vcompletion "comp.$sh" "$sh"
done
}