yay-auto-review
LOW
maintainer mahoshojoHCG
0 votes
scanned 2026-09-07 13:14:41.036925
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: mahoshojoHCG <hcgstd at proton dot me>
2
# SPDX-License-Identifier: GPL-3.0-only
3
4
pkgname=yay-auto-review
5
pkgver=0.3.4
6
pkgrel=1
7
pkgdesc='Review AUR package recipes with Codex before yay builds them'
8
arch=('any')
9
url='https://github.com/HCGStudio/yay-auto-review'
10
license=('GPL-3.0-only')
11
# yay-bin and yay-git provide an unversioned 'yay'; enable checks for yay >= 13.
12
depends=('python>=3.11' 'git' 'yay' 'openai-codex')
13
makedepends=('python-build' 'python-installer' 'python-setuptools>=77' 'python-wheel')
14
checkdepends=('lua51')
15
install=yay-auto-review.install
16
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
17
sha256sums=('c4845bc7e2ba361fd79bf9d886f4211251ac94154cb2bbad5f8a215e529e6039')
18
19
build() {
20
cd "$pkgname-$pkgver"
21
python -m build --wheel --no-isolation
22
}
23
24
check() {
25
cd "$pkgname-$pkgver"
26
LANG=C.UTF-8 LC_ALL=C.UTF-8 python -m unittest discover -s tests -v
27
}
28
29
package() {
30
cd "$pkgname-$pkgver"
31
python -m installer --destdir="$pkgdir" dist/*.whl
32
33
# AUR build directories and PYTHONPATH must never supply Python modules to
34
# the reviewer or makepkg guard, including before per-user enablement.
35
local command
36
for command in yay-auto-review yay-auto-review-makepkg; do
37
sed -i '1c#!/usr/bin/python -I' "$pkgdir/usr/bin/$command"
38
done
39
sed -i \
40
-e 's@local command = "yay-auto-review"@local command = "/usr/bin/yay-auto-review"@' \
41
-e 's@local guard = "yay-auto-review-makepkg"@local guard = "/usr/bin/yay-auto-review-makepkg"@' \
42
"$pkgdir/usr/share/yay-auto-review/yay-auto-review.lua"
43
44
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
45
install -Dm644 README.en.md "$pkgdir/usr/share/doc/$pkgname/README.en.md"
46
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
47
}
48
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-07 13:14:41 | Low | 1 |