From 991c1bf8e9a75154bf40f02e411ee65292015d55 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Fri, 16 Feb 2024 07:27:27 -0500 Subject: [PATCH] New package: uv-0.1.21 --- srcpkgs/uv/template | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 srcpkgs/uv/template diff --git a/srcpkgs/uv/template b/srcpkgs/uv/template new file mode 100644 index 00000000000000..859fb4bed5ac5a --- /dev/null +++ b/srcpkgs/uv/template @@ -0,0 +1,25 @@ +# Template file for 'uv' +pkgname=uv +version=0.1.21 +revision=1 +build_style=python3-pep517 +build_helper="rust qemu" +hostmakedepends="maturin cargo cmake pkg-config" +makedepends="openssl-devel rust-std" +short_desc="Extremely fast Python package installer and resolver" +maintainer="classabbyamp " +license="Apache-2.0, 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" +checksum=eae4d4641e57ef2eec75d9f76653b8a3a0dc0b91b3dcc8fbbb2ce4456a08fcfe +# many tests require old python versions +make_check=no + +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 +}