Files
horizon-packages/srcpkgs/ty/template
T
2026-08-13 22:24:03 +02:00

24 lines
788 B
Bash

# Template file for 'ty'
pkgname=ty
version=0.0.71
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=9b01c95227583981a151e06429587d66751f5f0cb89c56fbbaa7e5406b479751
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
}