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-10-10 11:48:45 +00:00
|
|
|
pkgver=1.3.2
|
2023-08-14 03:34:14 +00:00
|
|
|
_gittag="v$pkgver"
|
2024-12-01 01:53:10 +00:00
|
|
|
pkgrel=1
|
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-10-10 11:48:45 +00:00
|
|
|
36d34af695b3d765c24e4bd9abe2ec0fad82adaf8618db642dd44b2d7b5fda9faf1d92eaba7815fd1c276551278cd8f40b1c1be066fee2cc06a738ef92b40ae0 qubes-usb-proxy-v1.3.2.tar.gz
|
2024-07-27 22:42:15 +00:00
|
|
|
c6519982f7eef8586ee823dc96efa7b1b90f489114edcc348bc5221837090d19a2a3533eac83e3269ba68c2cf24447c018e0ac850ed1423a1280ebae364223fa usb-import-alpine-udevadm.patch
|
2023-08-14 03:34:14 +00:00
|
|
|
"
|