24 lines
770 B
Bash
24 lines
770 B
Bash
# Template file for 'ruff'
|
|
pkgname=ruff
|
|
version=0.6.8
|
|
revision=1
|
|
build_style=python3-pep517
|
|
build_helper="rust qemu"
|
|
hostmakedepends="maturin cargo pkg-config"
|
|
makedepends="rust-std libzstd-devel"
|
|
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=27765b3018646745b064ea5734a4f1ba36dede3df3883dd5d150e8307e5d2149
|
|
|
|
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
|
|
}
|