pi-web

LOW
maintainer Orion-zhen 0 votes scanned 2026-08-25 03:25:42.010142
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: Orion-zhen <https://github.com/Orion-zhen>
2
3pkgname=pi-web
4pkgver=0.8.9
5pkgrel=1
6pkgdesc='Local browser UI for the pi coding agent'
7arch=('x86_64')
8url='https://github.com/agegr/pi-web'
9license=('MIT')
10
11depends=(
12 'nodejs>=22.19.0'
13)
14
15makedepends=(
16 'npm'
17)
18
19optdepends=(
20 'xdg-utils: automatically open the web interface in a browser'
21)
22
23source=(
24 "${pkgname}-${pkgver}.tar.gz::https://github.com/agegr/pi-web/archive/refs/tags/v${pkgver}.tar.gz"
25)
26
27sha256sums=('9624948a2194e51d6d99208ce74dcd648f4886654d167fefd0afd84588d44883')
28
29build() {
30 cd "${pkgname}-${pkgver}"
31
32 npm ci \
33 --cache "${srcdir}/npm-cache" \
34 --no-audit \
35 --no-fund
36
37 NEXT_TELEMETRY_DISABLED=1 npm run build
38}
39
40package() {
41 cd "${pkgname}-${pkgver}"
42
43 # Remove dependencies needed only for building/testing.
44 npm prune \
45 --omit=dev \
46 --cache "${srcdir}/npm-cache" \
47 --no-audit \
48 --no-fund
49
50 install -d "${pkgdir}/usr/lib/${pkgname}"
51
52 cp -a \
53 bin \
54 .next \
55 node_modules \
56 public \
57 next.config.ts \
58 package.json \
59 "${pkgdir}/usr/lib/${pkgname}/"
60
61 # Match the contents of the upstream npm release:
62 # these build artifacts are not required at runtime.
63 rm -rf \
64 "${pkgdir}/usr/lib/${pkgname}/.next/cache" \
65 "${pkgdir}/usr/lib/${pkgname}/.next/dev"
66
67 find "${pkgdir}/usr/lib/${pkgname}/.next" \
68 -type f -name '*.js.map' -delete
69
70 install -d "${pkgdir}/usr/bin"
71 ln -s "../lib/${pkgname}/bin/pi-web.js" \
72 "${pkgdir}/usr/bin/pi-web"
73
74 install -Dm644 LICENSE \
75 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
76
77 install -Dm644 README.md \
78 "${pkgdir}/usr/share/doc/${pkgname}/README.md"
79}
80

Scan history

Scanned at (UTC)SeverityRules
2026-08-25 03:25:42 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