webhid-addon-git

LOW
maintainer k4zoku 0 votes scanned 2026-08-24 05:22:02.165497
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: 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
12pkgname=${_pkgbase}-git
13pkgver=3.1.0.r96.g050c5e5
14pkgrel=1
15pkgdesc='WebHID browser extension for Firefox and Zen (git build, unsigned)'
16arch=('any')
17url='https://github.com/K4zoku/FF-WebHID'
18license=('MIT')
19depends=('webhid')
20makedepends=('git' 'nodejs' 'npm')
21provides=("${_pkgbase}")
22conflicts=("${_pkgbase}")
23install=webhid-addon-git.install
24source=("${_pkgbase}::git+${url}.git")
25sha256sums=('SKIP')
26
27_ff_guid='{ec8030f7-c20a-464f-9b0e-13a3a9e97384}'
28_ext_id='webhid@k4zoku.dev'
29
30pkgver() {
31 cd "${_pkgbase}"
32 git describe --tags | sed 's/^v//;s/_/./;s/\([^-]*-g\)/r\1/;s/-/./g'
33}
34
35prepare() {
36 cd "${_pkgbase}"
37 npm ci
38}
39
40build() {
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
54package() {
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)SeverityRules
2026-08-24 05:22:02 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