void-packages/srcpkgs/tinymist/template
2025-05-08 11:08:46 -04:00

31 lines
941 B
Bash

# Template file for 'tinymist'
pkgname=tinymist
version=0.13.12
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=f7cb81e9aac04a5aafeb8f19161204174d9072935b93df9202f1583bed826c51
# 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
}