35 lines
1,002 B
Text
35 lines
1,002 B
Text
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=qubes-usb-proxy
|
|
pkgver=1.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"
|
|
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 .); do
|
|
sed -i 's|/bin/sh|/bin/bash|' "$i"
|
|
done
|
|
}
|
|
sha512sums="
|
|
822718decff8d2d15e56208b51603d3104cacb42981576985c2955e2bb73a66119397359314ebb6e6b52e3985b4d797e02b1074faf40aa6ca9cce067c753d830 qubes-usb-proxy-v1.3.0.tar.gz
|
|
"
|