14 lines
400 B
Bash
Executable file
14 lines
400 B
Bash
Executable file
#! /usr/bin/sh
|
|
|
|
package=uv
|
|
repo=astral-sh/uv
|
|
resource=uv-x86_64-unknown-linux-gnu.tar.gz
|
|
|
|
install_uv() {
|
|
tempdir="$(mktemp --directory)"
|
|
tar xz --directory="${tempdir}" --strip-components=1 && \
|
|
chmod 550 "${tempdir}"/uv "${tempdir}"/uvx && \
|
|
mv --force "${tempdir}"/uv "${tempdir}"/uvx "$(systemd-path user-binaries)"
|
|
}
|
|
|
|
github_update "${package}" "${repo}" "${resource}" install_uv
|