qports/qubes-usb-proxy/APKBUILD

37 lines
1,003 B
Text
Raw Normal View History

# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=qubes-usb-proxy
2024-04-20 21:06:59 +00:00
pkgver=1.2.1
_gittag="v$pkgver"
2024-04-20 21:06:59 +00:00
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="
2024-04-20 21:06:59 +00:00
e034ce9ec163fdcd4ad2ceb0cb1f5158ae670484b589a34ef610731a379f0f76f280cabb195c2e97228bbeb61cfb9296ccc89ad533a050f0d464a50724724cbb qubes-usb-proxy-v1.2.1.tar.gz
"