From ea5d3c83d5ec2900759a1513ba9df3511b96f271 Mon Sep 17 00:00:00 2001 From: Bart Libert Date: Tue, 27 Jan 2026 12:06:29 +0100 Subject: [PATCH] Initial commit --- .SRCINFO | 14 ++++++++++++++ .gitignore | 8 ++++++++ .pre-commit-config.yaml | 33 +++++++++++++++++++++++++++++++++ LICENSE | 12 ++++++++++++ PKGBUILD | 27 +++++++++++++++++++++++++++ REUSE.toml | 25 +++++++++++++++++++++++++ zsh-uv-env-git.install | 8 ++++++++ 7 files changed, 127 insertions(+) create mode 100644 .SRCINFO create mode 100644 .gitignore create mode 100644 .pre-commit-config.yaml create mode 100644 LICENSE create mode 100644 PKGBUILD create mode 100644 REUSE.toml create mode 100644 zsh-uv-env-git.install diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5e95400dded7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = zsh-uv-env-git + pkgdesc = Automatically activates a virtual environment based on the current directory + pkgver = r9.6a4b901 + pkgrel = 1 + url = https://github.com/matthiasha/zsh-uv-env + install = zsh-uv-env-git.install + arch = any + license = MIT + makedepends = git + depends = zsh + source = git+https://github.com/matthiasha/zsh-uv-env + sha256sums = SKIP + +pkgname = zsh-uv-env-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..ae819f1b6dd4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +* +!PKGBUILD +!.SRCINFO +!.gitignore +!.pre-commit-config.yaml +!REUSE.toml +!LICENSE +!zsh-uv-env-git.install diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000000..ccea1173137f --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,33 @@ +--- +default_install_hook_types: +- pre-commit +- commit-msg +default_stages: +- pre-commit +- pre-merge-commit +- pre-push +- manual +exclude: "(?x)^(\n .*cache.*/.*| # Exclude cache directories\n .*venv.*/.*|\ + \ # Exclude virtual environment directories\n)$\n" +fail_fast: true +repos: +- hooks: + - id: check-added-large-files + - id: check-case-conflict + - id: check-vcs-permalinks + - id: destroyed-symlinks + - id: detect-private-key + - id: end-of-file-fixer + - id: mixed-line-ending + - id: trailing-whitespace + repo: https://github.com/pre-commit/pre-commit-hooks + rev: v6.0.0 +- hooks: + - id: gitleaks + repo: https://github.com/gitleaks/gitleaks + rev: v8.30.0 +- hooks: + - id: srcinfo-fixer + - id: verify-srcinfo-checksums + repo: https://github.com/edlanglois/pkgbuild-hooks + rev: v0.2.0 diff --git a/LICENSE b/LICENSE new file mode 100644 index 000000000000..b87c5e4be442 --- /dev/null +++ b/LICENSE @@ -0,0 +1,12 @@ +Copyright Arch Linux Contributors + +Permission to use, copy, modify, and/or distribute this software for +any purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL +WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE +FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY +DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN +AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT +OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..27efe68a64ae --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Bart Libert +_pkgname=zsh-uv-env +pkgname=${_pkgname}-git +pkgver=r9.6a4b901 +pkgrel=1 +pkgdesc="Automatically activates a virtual environment based on the current directory " +arch=(any) +url="https://github.com/matthiasha/zsh-uv-env" +license=("MIT") +depends=("zsh") +makedepends=("git") +source=(git+${url}) +sha256sums=('SKIP') +install=$pkgname.install + +pkgver() { + cd "$_pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + install -d "${pkgdir}/usr/share/zsh/plugins/${_pkgname}" + install -Dm644 "${srcdir}/${_pkgname}/zsh-uv-env.plugin.zsh" \ + "${pkgdir}/usr/share/zsh/plugins/${_pkgname}" + install -Dm644 "${srcdir}/${_pkgname}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 "${srcdir}/${_pkgname}/README.md" "$pkgdir/usr/share/doc/$pkgname/LICENSE" +} diff --git a/REUSE.toml b/REUSE.toml new file mode 100644 index 000000000000..0a54fd1d684e --- /dev/null +++ b/REUSE.toml @@ -0,0 +1,25 @@ +version = 1 + +[[annotations]] +path = [ + "PKGBUILD", + "README.md", + "keys/**", + ".SRCINFO", + ".nvchecker.toml", + "*.install", + "*.sysusers", + "*.tmpfiles", + "*.logrotate", + "*.pam", + "*.service", + "*.socket", + "*.timer", + "*.desktop", + "*.hook", + ".gitignore", + ".pre-commit-config.yaml", + "zsh-uv-env-git.install" +] +SPDX-FileCopyrightText = "Arch Linux contributors" +SPDX-License-Identifier = "0BSD" diff --git a/zsh-uv-env-git.install b/zsh-uv-env-git.install new file mode 100644 index 000000000000..351497fb5b5b --- /dev/null +++ b/zsh-uv-env-git.install @@ -0,0 +1,8 @@ +post_install() { + cat << EOF +To activate zsh-uv-env, add the following line at the end of ~/.zshrc: + source /usr/share/zsh/plugins/zsh-uv-env/zsh-uv-env.plugin.zsh +EOF +} + +# vim:set ts=2 sw=2 et: