ayaports/user/qubes-usb-proxy/APKBUILD

36 lines
1,010 B
Text

# 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="!armv7 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
"