agent-pwa-notifications
LOW
maintainer Quatro
0 votes
scanned 2026-09-03 19:54:21.739188
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: Xavier Francisco <echo moc.liamg@ocsicnarf.n.reivax | rev>
2
3
pkgname=agent-pwa-notifications
4
pkgver=1.0.0
5
pkgrel=1
6
pkgdesc="CLI for a self-hosted Agent Notifications hub: connect an agent, mint a sign-in link, send updates and questions"
7
arch=('any')
8
url="https://github.com/Qu4tro/agent-pwa-notifications"
9
license=('MIT')
10
depends=('nodejs>=20')
11
makedepends=('npm')
12
provides=('agent-notify-pwa')
13
options=('!strip' '!debug')
14
source=("$pkgname-$pkgver.tar.gz::https://github.com/Qu4tro/agent-pwa-notifications/archive/refs/tags/v$pkgver.tar.gz")
15
sha256sums=('b399d4baf7d4a6f8b68db3e7caa41e1d0639936abcefd33e4486f9c1d26a263d')
16
17
# The tarball is the whole hub repository; only cli/ is packaged. The CLI has
18
# one runtime dependency (qrcode-terminal) and no build step.
19
build() {
20
cd "$pkgname-$pkgver/cli"
21
npm install --omit=dev --no-audit --no-fund --no-package-lock
22
}
23
24
package() {
25
cd "$pkgname-$pkgver"
26
27
local _dest="$pkgdir/usr/lib/$pkgname"
28
install -dm755 "$_dest"
29
cp -r cli/bin.mjs cli/lib cli/package.json cli/node_modules "$_dest/"
30
31
install -dm755 "$pkgdir/usr/bin"
32
ln -s "../lib/$pkgname/bin.mjs" "$pkgdir/usr/bin/agent-notify-pwa"
33
34
# npm leaves the build user as the owner and hands out random directory
35
# permissions. See https://bugs.archlinux.org/task/63396
36
chmod 755 "$_dest/bin.mjs"
37
find "$_dest" -type d -exec chmod 755 {} +
38
find "$_dest" -type f -perm /022 -exec chmod go-w {} +
39
chown -R root:root "$pkgdir"
40
41
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
42
install -Dm644 cli/README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
43
}
44
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-03 19:54:21 | Low | 1 |