lastf
LOW
maintainer xeyossr
0 votes
scanned 2026-09-17 00:27:14.276658
Why flagged
The pip installs are part of building the project from its own source (Nuitka, requirements.txt); this is normal for AUR packages and not inherently dangerous.
Triggered rules
Low
AI review downgraded a static finding
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The pip installs are part of building the project from its own source (Nuitka, requirements.txt); this is normal for AUR packages and not inherently dangerous.
1 higher static finding superseded - not the current verdict (shown for transparency)
Medium
pip install of an external package
pip_install_external
`pip install <package>` fetches an unpinned package from PyPI at build time, outside source=() and makepkg's checksums.
-
PKGBUILD:22
.venv/bin/pip install --upgrade pip -
PKGBUILD:23
.venv/bin/pip install nuitka -
PKGBUILD:26
.venv/bin/pip install -r requirements.txt
PKGBUILD
3 offending line(s) highlighted
1
# Maintainer: kamisaki
2
# Description: Better last command interface with structured output.
3
4
pkgname=lastf
5
pkgver=1.0.0
6
pkgrel=1
7
pkgdesc="Better last command interface with structured output."
8
arch=('x86_64')
9
license=('GPL3')
10
depends=()
11
makedepends=('python' 'python-virtualenv' 'clang')
12
source=("https://github.com/xeyossr/lastf/archive/refs/tags/v${pkgver}.tar.gz")
13
sha256sums=('SKIP')
14
15
build() {
16
cd "$srcdir/$pkgname-$pkgver"
17
18
DIST_DIR="${pkgname}.dist"
19
20
python -m venv .venv
21
22
.venv/bin/pip install --upgrade pip
23
.venv/bin/pip install nuitka
24
25
if [[ -f requirements.txt ]]; then
26
.venv/bin/pip install -r requirements.txt
27
fi
28
29
.venv/bin/python -m nuitka \
30
--standalone \
31
--enable-plugin=pylint-warnings \
32
--lto=yes \
33
--clang \
34
--jobs=4 \
35
"${pkgname}.py"
36
}
37
38
package() {
39
cd "$srcdir/$pkgname-$pkgver"
40
41
INSTALL_DIR="$pkgdir/usr/lib/$pkgname"
42
LAUNCHER_PATH="$pkgdir/usr/bin/$pkgname"
43
44
install -dm755 "$INSTALL_DIR"
45
cp -r "${pkgname}.dist/"* "$INSTALL_DIR/"
46
47
install -dm755 "$(dirname "$LAUNCHER_PATH")"
48
cat > "$LAUNCHER_PATH" <<EOF
49
#!/usr/bin/env bash
50
exec /usr/lib/$pkgname/${pkgname}.bin "\$@"
51
EOF
52
chmod +x "$LAUNCHER_PATH"
53
}
54
55
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |