lastf
LOW
maintainer xeyossr
0 votes
scanned 2026-11-01 00:21:48.120785
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-11-01 00:21:48 | Low | 2 |
| 2026-10-31 00:07:41 | Low | 2 |
| 2026-10-30 00:29:30 | Low | 2 |
| 2026-10-29 00:13:55 | Low | 2 |
| 2026-10-28 00:06:54 | Low | 2 |
| 2026-10-27 00:23:28 | Low | 2 |
| 2026-10-26 00:12:40 | Low | 2 |
| 2026-10-25 00:20:48 | Low | 2 |
| 2026-10-24 00:14:55 | Low | 2 |
| 2026-10-23 00:02:19 | Low | 2 |
| 2026-10-22 00:13:10 | Low | 2 |
| 2026-10-21 00:12:50 | Low | 2 |
| 2026-10-20 00:10:31 | Low | 2 |
| 2026-10-19 00:03:55 | Low | 2 |
| 2026-10-18 00:06:55 | Low | 2 |
| 2026-10-17 00:21:55 | Low | 2 |
| 2026-10-16 00:12:47 | Low | 2 |
| 2026-10-15 00:28:05 | Low | 2 |
| 2026-10-14 00:06:47 | Low | 2 |
| 2026-10-13 00:23:45 | Low | 2 |