typstyle: update to 0.13.9, install completions.

This commit is contained in:
Bnyro 2024-12-29 12:31:19 +01:00 committed by tranzystorekk
parent 55cda6aed5
commit 87dfc6fa9a

View file

@ -1,9 +1,12 @@
# Template file for 'typstyle'
pkgname=typstyle
version=0.12.3
version=0.13.9
revision=1
build_style=cargo
configure_args="--no-default-features --features=cli"
build_helper=qemu
configure_args="--no-default-features --features=completion"
make_install_args="--path crates/typstyle"
make_check_args="-- --skip all_0_check" # broken upstream
checkdepends="git"
short_desc="Beautiful and reliable typst code formatter"
maintainer="Bnyro <bnyro@tutanota.com>"
@ -11,8 +14,16 @@ license="Apache-2.0"
homepage="https://github.com/Enter-tainer/typstyle/"
changelog="https://raw.githubusercontent.com/Enter-tainer/typstyle/master/CHANGELOG.md"
distfiles="https://github.com/Enter-tainer/typstyle/archive/refs/tags/v${version}.tar.gz"
checksum=cbe6ea2c110849c0bdb7b8f22683b964c3a1ecb11b912a0b7e2a9d1468726b24
checksum=8c2952ee9d07b76ddeac56b34476e0b7b7ed6a84c5fe7aca1b07fb81a462c49b
if [ "$XBPS_TARGET_MACHINE" == "i686" ]; then
make_check=no # reflexo crate for tests not running on i686
fi
post_install() {
local typstyle="${DESTDIR}/usr/bin/typstyle"
for shell in bash zsh fish; do
vtargetrun "${typstyle}" completions ${shell} > completion.${shell}
vcompletion completion.${shell} ${shell}
done
}