vonsimulator-git
LOW
maintainer marblearch
0 votes
scanned 2026-10-07 14:05:47.471701
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: Alessandro Griseta <alegriseta@greennet.email>
2
pkgname=vonsimulator-git
3
pkgver=r16.23f1d49
4
pkgrel=1
5
pkgdesc='Von Neumann machine interpreter and simulator (PHP web app)'
6
arch=('any')
7
url='https://github.com/Il-Basta-Paolo/vonsimulator'
8
license=('MIT')
9
depends=('php')
10
makedepends=('git')
11
provides=('vonsimulator')
12
conflicts=('vonsimulator')
13
source=("$pkgname::git+$url.git")
14
sha256sums=('SKIP')
15
16
pkgver() {
17
cd "$pkgname"
18
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
19
}
20
21
prepare() {
22
cd "$pkgname"
23
sed -i 's/if (! STRICT_SYNTAX)/if (! self::STRICT_SYNTAX)/' \
24
application/classes/Interprete.php
25
grep -q 'self::STRICT_SYNTAX' application/classes/Interprete.php
26
}
27
package() {
28
cd "$pkgname"
29
30
# App files (read-only is fine: state lives in a client-side cookie)
31
install -d "$pkgdir/usr/share/webapps/vonsimulator"
32
cp -r application static index.html server.php \
33
"$pkgdir/usr/share/webapps/vonsimulator/"
34
35
# Launcher: PHP built-in server, localhost only, unprivileged port
36
install -d "$pkgdir/usr/bin"
37
cat >"$pkgdir/usr/bin/vonsimulator" <<'EOF'
38
#!/bin/sh
39
PORT="${PORT:-8080}"
40
echo "Von Neumann simulator: http://127.0.0.1:${PORT}/ (Ctrl+C to stop)"
41
exec php -S "127.0.0.1:${PORT}" -t /usr/share/webapps/vonsimulator
42
EOF
43
chmod 755 "$pkgdir/usr/bin/vonsimulator"
44
45
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
46
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
47
}
48
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-07 14:05:47 | Low | 1 |