homeassistant-matterjs-server

LOW
maintainer lifespirit 0 votes scanned 2026-08-28 11:35:03.635011
View on AUR
Why flagged

The package builds from the project's own git repository with a tagged release, uses standard npm build practices, and installs only project files; the SKIP'd checksum is a concern but the source is verifiable and no remote code execution or malicious behavior is present.

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.

Low AI review llm_review

An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is LOW (confidence 95%): The package builds from the project's own git repository with a tagged release, uses standard npm build practices, and installs only project files; the SKIP'd checksum is a concern but the source is verifiable and no remote code execution or malicious behavior is present.

PKGBUILD

1# Maintainer: lifespirit <life@crabs.pro>
2pkgname=homeassistant-matterjs-server
3pkgver=1.3.3
4pkgrel=1
5pkgdesc='Open Home Foundation Matter Server based on matter.js'
6arch=('x86_64' 'aarch64')
7url='https://github.com/matter-js/matterjs-server'
8license=('Apache-2.0')
9
10depends=(
11 'nodejs>=22.13.0'
12 'bluez'
13 'iputils'
14)
15
16makedepends=(
17 'git'
18 'npm'
19 'python'
20)
21
22backup=(
23 'etc/conf.d/matterjs-server'
24)
25
26source=(
27 "$pkgname::git+https://github.com/matter-js/matterjs-server.git#tag=v${pkgver}"
28 'matterjs-server.service'
29 'matterjs-server.sysusers'
30 'matterjs-server.conf'
31)
32
33sha256sums=(
34 'SKIP'
35 '48155a7307c5487efa32f67b739602c7ea540dad4b3ab997808e9dbc974f23af'
36 '3bc1e5da1c5b9e4212142a36d41f48812a7a6c5008c2332e47894edd2e4cd974'
37 '029f0bcae618ee29c0a6620975ff5019885cfa24fc13fdf2097d4153be57f792'
38)
39
40build() {
41 cd "$srcdir/$pkgname"
42
43 # Keep npm cache outside of the source tree.
44 export npm_config_cache="$srcdir/npm-cache"
45
46 # Use the Node headers provided by the Arch nodejs package instead
47 # of letting node-gyp download another copy.
48 export npm_config_nodedir=/usr
49
50 # package-lock.json is provided by upstream.
51 #
52 # The root package has:
53 # "prepare": "npm run build-clean"
54 #
55 # so npm ci also performs the complete Matter Server build.
56 npm ci \
57 --include=dev \
58 --include=optional \
59 --foreground-scripts \
60 --no-audit \
61 --no-fund
62
63 # Make the build fail immediately if the server was not generated.
64 test -f packages/matter-server/dist/esm/MatterServer.js
65}
66
67package() {
68 cd "$srcdir/$pkgname"
69
70 export npm_config_cache="$srcdir/npm-cache"
71 export npm_config_nodedir=/usr
72
73 # Remove TypeScript, test and other build-only npm dependencies.
74 # Optional dependencies are intentionally retained because Matter Server
75 # uses them for BLE support.
76 npm prune \
77 --omit=dev \
78 --no-audit \
79 --no-fund
80
81 install -dm755 \
82 "$pkgdir/usr/share/matterjs-server"
83
84 # Runtime npm dependencies. Preserve workspace symlinks.
85 cp -a \
86 node_modules \
87 "$pkgdir/usr/share/matterjs-server/"
88
89 # Workspace packages referenced through node_modules symlinks.
90 local workspace
91 for workspace in \
92 ble-proxy \
93 custom-clusters \
94 dashboard \
95 matter-server \
96 ws-client \
97 ws-controller
98 do
99 install -dm755 \
100 "$pkgdir/usr/share/matterjs-server/packages/$workspace"
101
102 cp -a \
103 "packages/$workspace/dist" \
104 "$pkgdir/usr/share/matterjs-server/packages/$workspace/"
105
106 install -Dm644 \
107 "packages/$workspace/package.json" \
108 "$pkgdir/usr/share/matterjs-server/packages/$workspace/package.json"
109 done
110
111 # License and documentation.
112 install -Dm644 \
113 LICENSE \
114 "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
115
116 install -Dm644 \
117 README.md \
118 "$pkgdir/usr/share/doc/$pkgname/README.md"
119
120 install -Dm644 \
121 docs/cli.md \
122 "$pkgdir/usr/share/doc/$pkgname/cli.md"
123
124 # systemd service.
125 install -Dm644 \
126 "$srcdir/matterjs-server.service" \
127 "$pkgdir/usr/lib/systemd/system/matterjs-server.service"
128
129 # systemd-sysusers configuration.
130 install -Dm644 \
131 "$srcdir/matterjs-server.sysusers" \
132 "$pkgdir/usr/lib/sysusers.d/matterjs-server.conf"
133
134 # Runtime configuration.
135 install -Dm644 \
136 "$srcdir/matterjs-server.conf" \
137 "$pkgdir/etc/conf.d/matterjs-server"
138}
139

Scan history

Scanned at (UTC)SeverityRules
2026-08-28 11:35:03 Low 2
2026-08-28 09:35:00 Low 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion