# Template file for 'uv' pkgname=uv version=0.5.2 revision=1 build_style=python3-pep517 build_helper="rust qemu" hostmakedepends="maturin cargo cmake pkg-config" makedepends="rust-std libzstd-devel bzip2-devel" short_desc="Extremely fast Python package installer and resolver" maintainer="classabbyamp " license="Apache-2.0 OR MIT" homepage="https://github.com/astral-sh/uv" changelog="https://github.com/astral-sh/uv/raw/main/CHANGELOG.md" distfiles="https://github.com/astral-sh/uv/releases/download/${version}/source.tar.gz>uv-${version}.tar.gz" checksum=60465d87552cd6febfdee8c58176d699e00d5549f2d35db3261ec5a113996099 case "$XBPS_TARGET_MACHINE" in i686*) # if parallel, rustc-LLVM ERROR: out of memory Allocation failed disable_parallel_build=yes ;; esac post_install() { vlicense LICENSE-MIT for sh in bash fish zsh; do vtargetrun "$DESTDIR"/usr/bin/uv --generate-shell-completion "$sh" > "uv.$sh" vcompletion "uv.$sh" "$sh" done }