vonsimulator-git

LOW
maintainer marblearch 0 votes scanned 2026-10-07 14:05:47.471701
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: Alessandro Griseta <alegriseta@greennet.email>
2pkgname=vonsimulator-git
3pkgver=r16.23f1d49
4pkgrel=1
5pkgdesc='Von Neumann machine interpreter and simulator (PHP web app)'
6arch=('any')
7url='https://github.com/Il-Basta-Paolo/vonsimulator'
8license=('MIT')
9depends=('php')
10makedepends=('git')
11provides=('vonsimulator')
12conflicts=('vonsimulator')
13source=("$pkgname::git+$url.git")
14sha256sums=('SKIP')
15
16pkgver() {
17 cd "$pkgname"
18 printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
19}
20
21prepare() {
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}
27package() {
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
39PORT="${PORT:-8080}"
40echo "Von Neumann simulator: http://127.0.0.1:${PORT}/ (Ctrl+C to stop)"
41exec php -S "127.0.0.1:${PORT}" -t /usr/share/webapps/vonsimulator
42EOF
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)SeverityRules
2026-10-07 14:05:47 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