mlos-host-utils

LOW
maintainer Mopigames 0 votes scanned 2026-08-23 11:20:29.798052
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: Margot Prego <mopigames@proton.me>
2#
3# Template. 0.2.0 and f4053be9646fb43d40a265e6b8727bf6e46f2c08be6823bd648e982f349c112d are filled in per release by
4# packaging/aur/render.sh, from the tarball GitHub actually serves.
5pkgname=mlos-host-utils
6pkgver=0.2.0
7pkgrel=1
8pkgdesc="USB passthrough agent for the PC you stream from with Moonlight OS"
9arch=('x86_64' 'aarch64')
10url="https://github.com/MopigamesYT/moonlight-os"
11license=('MPL-2.0')
12# usbip lives in Arch's own usbip package, so unlike every other platform
13# this one does not have to go and find a client at install time.
14depends=('usbip')
15makedepends=('go')
16source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
17sha256sums=('f4053be9646fb43d40a265e6b8727bf6e46f2c08be6823bd648e982f349c112d')
18
19build() {
20 cd "moonlight-os-$pkgver/host-utils"
21
22 # Arch's Go packaging guidelines: the distribution picks the hardening
23 # flags, and -trimpath keeps build paths out of the binary.
24 export CGO_ENABLED=0
25 export GOFLAGS="-trimpath -mod=readonly -modcacherw"
26 go build -ldflags "-s -w -X main.Version=$pkgver" -o "$pkgname" .
27}
28
29check() {
30 cd "moonlight-os-$pkgver/host-utils"
31 go test ./...
32}
33
34package() {
35 cd "moonlight-os-$pkgver/host-utils"
36 install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
37 install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
38 install -Dm644 "../LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
39
40 # vhci-hcd is what makes a remote device appear as a local one. The
41 # binary can load it itself, but a package that ships the modules-load
42 # fragment means it is already there on first boot after installing.
43 install -Dm644 /dev/stdin "$pkgdir/usr/lib/modules-load.d/$pkgname.conf" <<-'EOF'
44 # Virtual USB host controller, for USB/IP passthrough from Moonlight OS.
45 vhci-hcd
46 EOF
47}
48

Scan history

Scanned at (UTC)SeverityRules
2026-08-23 11:20:29 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