2025-02-07 00:25:34 -05:00

31 lines
877 B
Bash

# Template file for 'tinymist'
pkgname=tinymist
version=0.12.18
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/"
distfiles="https://github.com/Myriad-Dreamin/tinymist/archive/refs/tags/v${version}.tar.gz"
checksum=2b31e22fa67a253ebb06526018c890b2b2f03b45d0870a142d4b98a56ecdefb5
# 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
}