webhid-addon-git
LOW
maintainer k4zoku
0 votes
scanned 2026-08-24 05:22:02.165497
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: K4zoku <k4zoku@pm.me>
2
#
3
# This PKGBUILD builds the WebHID Firefox extension from the latest git
4
# commit. The resulting XPI is UNSIGNED (version derived via git describe).
5
#
6
# Signing caveat: unsigned extensions load system-wide on LibreWolf and
7
# Waterfox (signature enforcement disabled at build level), and on Firefox
8
# ESR/Nightly/Developer Edition with xpinstall.signatures.required=false.
9
# Stock Firefox Release rejects unsigned add-ons regardless of install scope.
10
11
_pkgbase=webhid-addon
12
pkgname=${_pkgbase}-git
13
pkgver=3.1.0.r96.g050c5e5
14
pkgrel=1
15
pkgdesc='WebHID browser extension for Firefox and Zen (git build, unsigned)'
16
arch=('any')
17
url='https://github.com/K4zoku/FF-WebHID'
18
license=('MIT')
19
depends=('webhid')
20
makedepends=('git' 'nodejs' 'npm')
21
provides=("${_pkgbase}")
22
conflicts=("${_pkgbase}")
23
install=webhid-addon-git.install
24
source=("${_pkgbase}::git+${url}.git")
25
sha256sums=('SKIP')
26
27
_ff_guid='{ec8030f7-c20a-464f-9b0e-13a3a9e97384}'
28
_ext_id='webhid@k4zoku.dev'
29
30
pkgver() {
31
cd "${_pkgbase}"
32
git describe --tags | sed 's/^v//;s/_/./;s/\([^-]*-g\)/r\1/;s/-/./g'
33
}
34
35
prepare() {
36
cd "${_pkgbase}"
37
npm ci
38
}
39
40
build() {
41
cd "${_pkgbase}"
42
npm run build:addon
43
}
44
45
_browser_forks=(librewolf waterfox)
46
47
_install_browser_forks() {
48
local _src="$1" _dest="$2" _root
49
for _root in "${_browser_forks[@]}"; do
50
install -Dm644 "$_src" "$pkgdir/usr/lib/$_root/$_dest"
51
done
52
}
53
54
package() {
55
local _root="$srcdir/${_pkgbase}"
56
local _xpi="$_root/dist/webhid-addon.xpi"
57
58
if [[ ! -f "$_xpi" ]]; then
59
error "Expected XPI not found: $_xpi"
60
return 1
61
fi
62
63
install -Dm644 "$_xpi" \
64
"$pkgdir/usr/lib/mozilla/extensions/$_ff_guid/$_ext_id.xpi"
65
_install_browser_forks "$_xpi" "extensions/$_ext_id.xpi"
66
}
67
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-24 05:22:02 | Low | 1 |