# Contributor: Antoine Martin (ayakael) # Maintainer: Antoine Martin (ayakael) pkgname=qubes-usb-proxy pkgver=4.3.0 _gittag="v$pkgver" pkgrel=0 pkgdesc="The Qubes service for proxying USB devices" arch="noarch" url="https://github.com/QubesOS/qubes-app-linux-usb-proxy" license="GPL" options="!check" # No testsuite depends=" qubes-vm-core usbutils " makedepends=" gcc make pkgconf " source=" $pkgname-$_gittag.tar.gz::https://github.com/QubesOS/qubes-app-linux-usb-proxy/archive/refs/tags/$_gittag.tar.gz usb-import-alpine-udevadm.patch " builddir="$srcdir"/qubes-app-linux-usb-proxy-${_gittag/v} package() { make install-vm DESTDIR="$pkgdir" # replace all shebangs with /bin/sh as qubes expects bash # shellcheck disable=SC2013 for i in $(grep '/bin/sh' -Rl "$pkgdir"); do sed -i 's|/bin/sh|/bin/bash|' "$i" done mkdir -p "$pkgdir"/etc/modules-load.d echo "vhci-hcd" > "$pkgdir"/etc/modules-load.d/qubes-usb-proxy.conf } sha512sums=" b193a4df3b0281b2619528ac0a6542a47bd7204a073c9f0cb7c17233d0537f742eb83a58d591fc0e2599aea1a4783f07c7c90dcccdf08fa5845d36e14adae1e3 qubes-usb-proxy-v4.3.0.tar.gz c6519982f7eef8586ee823dc96efa7b1b90f489114edcc348bc5221837090d19a2a3533eac83e3269ba68c2cf24447c018e0ac850ed1423a1280ebae364223fa usb-import-alpine-udevadm.patch "