# Template file for 'typst'
pkgname=typst
reverts="23.03.28_1"
version=0.3.0
revision=1
build_style=cargo
make_install_args="--path cli"
short_desc="Markup-based typesetting system that is powerful and easy to learn"
maintainer="classabbyamp <void@placeviolette.net>"
license="Apache-2.0"
homepage="https://typst.app"
changelog="https://typst.app/docs/changelog/"
distfiles="https://github.com/typst/typst/archive/refs/tags/v${version}.tar.gz"
checksum=e0bfff4749549ff519be6659b16958eb47f7f39957c0ffd2a74adb7a421d23c6

export TYPST_VERSION="$version"
export GEN_ARTIFACTS="./generated"

post_install() {
	for f in cli/generated/*.?; do
		vman "$f"
	done
	vcompletion cli/generated/typst.bash bash
	vcompletion cli/generated/typst.fish fish
	vcompletion cli/generated/_typst zsh
}
