void-packages/srcpkgs/ruff/template

24 lines
745 B
Bash

# Template file for 'ruff'
pkgname=ruff
version=0.6.5
revision=1
build_style=python3-pep517
build_helper="rust qemu"
hostmakedepends="maturin cargo"
makedepends="rust-std"
short_desc="Fast Python linter and code formatter"
maintainer="icp <pangolin@vivaldi.net>"
license="MIT"
homepage="https://docs.astral.sh/ruff/"
changelog="https://raw.githubusercontent.com/astral-sh/ruff/main/CHANGELOG.md"
distfiles="https://github.com/astral-sh/ruff/archive/refs/tags/${version}.tar.gz"
checksum=ecca79da8acf4e1f234652fcb1fadef913392e66795b61db1c469c1e34b8fe49
post_install() {
vlicense LICENSE
for shell in bash fish zsh; do
vtargetrun "$DESTDIR"/usr/bin/ruff generate-shell-completion $shell > ruff.$shell
vcompletion ruff.$shell $shell
done
}