<?xml version="1.0"?>
<package name="uv">
	<description>extremely fast Python package and project manager</description>
	<releases>
		<release version="0.9.8" revision="1">
			<deps>
				<dep name="bash-completion"/>
				<dep name="libxcrypt"/>
				<dep name="Python3"/>
				<dep name="rustc"/>
			</deps>
			<build>
				<script>
					<archive name="uv-$VERSION">
						<!-- use vendored sources -->
						<archive name="uv-$VERSION-vendor" srcdir="vendor" delete="no"/>
						<cmd>mkdir -p .cargo</cmd>
						<text dest=".cargo/config" environment="expand">
[source.crates-io]
replace-with = "vendored-sources"

[source."git+https://github.com/astral-sh/pubgrub?rev=d8efd77673c9a90792da9da31b6c0da7ea8a324b"]
git = "https://github.com/astral-sh/pubgrub"
rev = "d8efd77673c9a90792da9da31b6c0da7ea8a324b"
replace-with = "vendored-sources"

[source."git+https://github.com/astral-sh/reqwest-middleware?rev=7650ed76215a962a96d94a79be71c27bffde7ab2"]
git = "https://github.com/astral-sh/reqwest-middleware"
rev = "7650ed76215a962a96d94a79be71c27bffde7ab2"
replace-with = "vendored-sources"

[source."git+https://github.com/astral-sh/rs-async-zip?rev=f6a41d32866003c868d03ed791a89c794f61b703"]
git = "https://github.com/astral-sh/rs-async-zip"
rev = "f6a41d32866003c868d03ed791a89c794f61b703"
replace-with = "vendored-sources"

[source."git+https://github.com/astral-sh/tl.git?rev=6e25b2ee2513d75385101a8ff9f591ef51f314ec"]
git = "https://github.com/astral-sh/tl.git"
rev = "6e25b2ee2513d75385101a8ff9f591ef51f314ec"
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"
</text>

						<cmd>cargo build --release</cmd>

						<cmd>install -D -v -m 0755 target/release/uv /usr/bin/uv</cmd>
						<cmd>install -D -v -m 0755 target/release/uvx /usr/bin/uvx</cmd>

						<cmd>uv --generate-shell-completion bash &gt; /usr/share/bash-completion/completions/uv</cmd>
					</archive>
				</script>
			</build>
		</release>
	</releases>
</package>
