shorin-pac-git
LOW
maintainer shorin
0 votes
scanned 2026-09-06 07:10:31.945140
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
3
pkgname=shorin-pac-git
4
_pkgname=shorin-pac
5
pkgver=r30.15f0004
6
pkgrel=1
7
pkgdesc="Simple fzf-based TUI to install/remove pacman, AUR and Flatpak packages on Arch, with AI-assisted AUR review and leftover cleanup"
8
arch=('any')
9
url="https://github.com/SHORiN-KiWATA/shorin-pac"
10
license=('GPL-3.0-or-later')
11
depends=('bash' 'curl' 'fzf' 'jq' 'pacman')
12
makedepends=('git')
13
install="${_pkgname}.install"
14
optdepends=(
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
)
23
provides=("${_pkgname}")
24
conflicts=("${_pkgname}")
25
26
source=("git+https://github.com/SHORiN-KiWATA/shorin-pac.git")
27
sha256sums=('SKIP')
28
29
pkgver() {
30
cd "${_pkgname}"
31
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
32
}
33
34
package() {
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"
53
complete -c pac -f
54
complete -c pac -n '__fish_use_subcommand' -a 'config' -d 'Configure AI provider and model'
55
complete -c pac -l check -s c -d 'Review AUR packages only'
56
complete -c pac -l refresh -s y -d 'Force refresh AUR list'
57
complete -c pac -l ai -r -d 'AI provider[:model] for this run'
58
FISH
59
cat << 'FISH' > "${pkgdir}/usr/share/fish/vendor_completions.d/pacr.fish"
60
complete -c pacr -f
61
complete -c pacr -n '__fish_use_subcommand' -a 'config' -d 'Configure AI provider and model'
62
complete -c pacr -l clean -d 'Detect leftovers with AI (no prompt)'
63
complete -c pacr -l no-clean -d 'Skip leftover detection'
64
complete -c pacr -l scan -d 'Only list leftovers'
65
complete -c pacr -l rm -d 'Delete leftovers instead of trashing'
66
complete -c pacr -l ai -r -d 'AI provider[:model] for this run'
67
FISH
68
}
69
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-06 07:10:31 | Low | 1 |