Files
horizon-packages/srcpkgs/ty/template
T
2026-06-03 18:29:33 +02:00

24 lines
788 B
Bash

# Template file for 'ty'
pkgname=ty
version=0.0.42
revision=1
build_style=python3-pep517
build_helper="rust qemu"
hostmakedepends="maturin cargo pkg-config libzstd-devel"
makedepends="rust-std libzstd-devel"
short_desc="Fast Python type checker and language server"
maintainer="Hendrik Boll <fanyx@posteo.net>"
license="MIT"
homepage="https://docs.astral.sh/ty/"
changelog="https://raw.githubusercontent.com/astral-sh/ty/main/CHANGELOG.md"
distfiles="https://github.com/astral-sh/ty/releases/download/${version}/source.tar.gz"
checksum=b57a18a3861e17af7e207b2b36bf73210c3168c05f22adb9fad3cb3f9cc7887c
post_install() {
vlicense LICENSE
for shell in bash fish zsh; do
vtargetrun "$DESTDIR"/usr/bin/ty generate-shell-completion $shell > ty.$shell
vcompletion ty.$shell $shell
done
}