2023-08-14 03:34:14 +00:00
|
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
2024-06-03 12:15:29 +00:00
|
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
2023-08-14 03:34:14 +00:00
|
|
|
pkgname=qubes-usb-proxy
|
2024-07-11 16:43:07 +00:00
|
|
|
pkgver=1.3.0
|
2023-08-14 03:34:14 +00:00
|
|
|
_gittag="v$pkgver"
|
2024-07-27 21:33:00 +00:00
|
|
|
pkgrel=2
|
2023-08-14 03:34:14 +00:00
|
|
|
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
|
|
|
|
"
|
2024-07-27 04:09:09 +00:00
|
|
|
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
|
|
|
|
"
|
2023-08-14 03:34:14 +00:00
|
|
|
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
|
2024-07-27 04:09:09 +00:00
|
|
|
for i in $(grep '/bin/sh' -Rl "$pkgdir"); do
|
2023-08-14 03:34:14 +00:00
|
|
|
sed -i 's|/bin/sh|/bin/bash|' "$i"
|
|
|
|
done
|
2024-07-27 21:33:00 +00:00
|
|
|
|
|
|
|
mkdir -p "$pkgdir"/etc/modules-load.d
|
|
|
|
echo "vhci-hcd" > "$pkgdir"/etc/modules-load.d/qubes-usb-proxy.conf
|
2023-08-14 03:34:14 +00:00
|
|
|
}
|
|
|
|
sha512sums="
|
2024-07-11 16:43:07 +00:00
|
|
|
822718decff8d2d15e56208b51603d3104cacb42981576985c2955e2bb73a66119397359314ebb6e6b52e3985b4d797e02b1074faf40aa6ca9cce067c753d830 qubes-usb-proxy-v1.3.0.tar.gz
|
2024-07-27 04:09:09 +00:00
|
|
|
d0eb969122a41be8fa9647ca824aabf3cb3d39324b156b3e05872099e7c4b600dbc8060ab2a63186d84f60364c28c5db9da4d06e37ad36877a2222bdc2cdbd74 usb-import-alpine-udevadm.patch
|
2023-08-14 03:34:14 +00:00
|
|
|
"
|