qubes-usb-proxy: initial import from user-aports

This commit is contained in:
Antoine Martin 2023-08-13 23:34:14 -04:00
parent d29fa5f9b3
commit 526b18275c
Signed by: forge
GPG key ID: D62A472A4AA7D541

36
qubes-usb-proxy/APKBUILD Normal file
View file

@ -0,0 +1,36 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=qubes-usb-proxy
pkgver=1.1.2
_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="
d82dd944b8a420e1509fd84992d56120a1df802448675f390faec28af0e622dc2ee74542b007dd95e18c04d81786da396058270e6e0282943cbcbeadf184ec77 qubes-usb-proxy-v1.1.2.tar.gz
"