shorin-pac-git

LOW
maintainer shorin 0 votes scanned 2026-09-06 07:10:31.945140
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: Shorin <2433516202@qq.com>
2
3pkgname=shorin-pac-git
4_pkgname=shorin-pac
5pkgver=r30.15f0004
6pkgrel=1
7pkgdesc="Simple fzf-based TUI to install/remove pacman, AUR and Flatpak packages on Arch, with AI-assisted AUR review and leftover cleanup"
8arch=('any')
9url="https://github.com/SHORiN-KiWATA/shorin-pac"
10license=('GPL-3.0-or-later')
11depends=('bash' 'curl' 'fzf' 'jq' 'pacman')
12makedepends=('git')
13install="${_pkgname}.install"
14optdepends=(
15 'paru: preferred AUR helper'
16 'yay: fallback AUR helper (pac can install it for you)'
17 'flatpak: list and remove Flatpak apps in pacr'
18 'trash-cli: send leftovers to the trash instead of deleting'
19 'claude-code: AI backend via the claude CLI subscription'
20 'opencode: AI backend via the opencode CLI'
21 'miyu: AI backend via Miyu, and import of Miyu provider settings'
22)
23provides=("${_pkgname}")
24conflicts=("${_pkgname}")
25
26source=("git+https://github.com/SHORiN-KiWATA/shorin-pac.git")
27sha256sums=('SKIP')
28
29pkgver() {
30 cd "${_pkgname}"
31 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
32}
33
34package() {
35 cd "${_pkgname}"
36
37 # 命令直接进 /usr/bin:pac(安装)、pacr(卸载);`pac config` 配置 AI
38 install -Dm755 bin/pac "${pkgdir}/usr/bin/pac"
39 install -Dm755 bin/pacr "${pkgdir}/usr/bin/pacr"
40
41 # 共享库与提示词
42 install -Dm644 lib/shorin-pac.sh "${pkgdir}/usr/lib/${_pkgname}/lib/shorin-pac.sh"
43 local f
44 for f in prompts/*.md; do
45 install -Dm644 "$f" "${pkgdir}/usr/lib/${_pkgname}/prompts/$(basename "$f")"
46 done
47
48 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
49
50 # fish 补全
51 install -dm755 "${pkgdir}/usr/share/fish/vendor_completions.d"
52 cat << 'FISH' > "${pkgdir}/usr/share/fish/vendor_completions.d/pac.fish"
53complete -c pac -f
54complete -c pac -n '__fish_use_subcommand' -a 'config' -d 'Configure AI provider and model'
55complete -c pac -l check -s c -d 'Review AUR packages only'
56complete -c pac -l refresh -s y -d 'Force refresh AUR list'
57complete -c pac -l ai -r -d 'AI provider[:model] for this run'
58FISH
59 cat << 'FISH' > "${pkgdir}/usr/share/fish/vendor_completions.d/pacr.fish"
60complete -c pacr -f
61complete -c pacr -n '__fish_use_subcommand' -a 'config' -d 'Configure AI provider and model'
62complete -c pacr -l clean -d 'Detect leftovers with AI (no prompt)'
63complete -c pacr -l no-clean -d 'Skip leftover detection'
64complete -c pacr -l scan -d 'Only list leftovers'
65complete -c pacr -l rm -d 'Delete leftovers instead of trashing'
66complete -c pacr -l ai -r -d 'AI provider[:model] for this run'
67FISH
68}
69

Scan history

Scanned at (UTC)SeverityRules
2026-09-06 07:10:31 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion