yay-auto-review

LOW
maintainer mahoshojoHCG 0 votes scanned 2026-09-07 13:14:41.036925
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: mahoshojoHCG <hcgstd at proton dot me>
2# SPDX-License-Identifier: GPL-3.0-only
3
4pkgname=yay-auto-review
5pkgver=0.3.4
6pkgrel=1
7pkgdesc='Review AUR package recipes with Codex before yay builds them'
8arch=('any')
9url='https://github.com/HCGStudio/yay-auto-review'
10license=('GPL-3.0-only')
11# yay-bin and yay-git provide an unversioned 'yay'; enable checks for yay >= 13.
12depends=('python>=3.11' 'git' 'yay' 'openai-codex')
13makedepends=('python-build' 'python-installer' 'python-setuptools>=77' 'python-wheel')
14checkdepends=('lua51')
15install=yay-auto-review.install
16source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
17sha256sums=('c4845bc7e2ba361fd79bf9d886f4211251ac94154cb2bbad5f8a215e529e6039')
18
19build() {
20 cd "$pkgname-$pkgver"
21 python -m build --wheel --no-isolation
22}
23
24check() {
25 cd "$pkgname-$pkgver"
26 LANG=C.UTF-8 LC_ALL=C.UTF-8 python -m unittest discover -s tests -v
27}
28
29package() {
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)SeverityRules
2026-09-07 13:14:41 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