Initial commit

This commit is contained in:
Bart Libert 2026-01-27 12:06:29 +01:00
commit ea5d3c83d5
7 changed files with 127 additions and 0 deletions

14
.SRCINFO Normal file
View file

@ -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

8
.gitignore vendored Normal file
View file

@ -0,0 +1,8 @@
*
!PKGBUILD
!.SRCINFO
!.gitignore
!.pre-commit-config.yaml
!REUSE.toml
!LICENSE
!zsh-uv-env-git.install

33
.pre-commit-config.yaml Normal file
View file

@ -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

12
LICENSE Normal file
View file

@ -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.

27
PKGBUILD Normal file
View file

@ -0,0 +1,27 @@
# Maintainer: Bart Libert <bart plus aur at libert dot email>
_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"
}

25
REUSE.toml Normal file
View file

@ -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"

8
zsh-uv-env-git.install Normal file
View file

@ -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: