qports/qubes-input-proxy/APKBUILD

54 lines
1.8 KiB
Text
Raw Normal View History

2024-07-27 04:35:48 +00:00
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=qubes-input-proxy
2024-10-10 11:41:14 +00:00
pkgver=1.0.38
2024-07-27 04:35:48 +00:00
_gittag=v$pkgver
2024-10-10 11:41:14 +00:00
pkgrel=0
2024-07-27 04:35:48 +00:00
pkgdesc="The Qubes service for proxying input devices"
arch="x86_64"
2024-10-10 11:41:14 +00:00
url="https://github.com/QubesOS/qubes-app-linux-input-proxy"
2024-07-27 04:35:48 +00:00
license='GPL'
depends="
usbutils
qubes-vm-core
"
makedepends="linux-headers"
2024-07-27 18:59:43 +00:00
subpackages="$pkgname-openrc"
source="
$pkgname-$_gittag.tar.gz::https://github.com/QubesOS/qubes-app-linux-input-proxy/archive/refs/tags/$_gittag.tar.gz
qubes-input-trigger_use-openrc.patch
makefile_skip-systemd.patch
qubes-input-sender.openrc
"
2024-07-27 04:35:48 +00:00
builddir="$srcdir"/qubes-app-linux-input-proxy-$pkgver
build() {
make all \
LIBDIR=/usr/lib \
USRLIBDIR=/usr/lib \
SYSLIBDIR=/usr/lib
}
package() {
make install-vm \
DESTDIR="$pkgdir" \
LIBDIR=/usr/lib \
USRLIBDIR=/usr/lib \
SYSLIBDIR=/usr/lib
# replace all shebangs with /bin/sh as qubes expects bash
# shellcheck disable=SC2013
for i in $(grep '/bin/sh' -Rl "$pkgdir"); do
sed -i 's|/bin/sh|/bin/bash|' "$i"
done
2024-07-27 18:59:43 +00:00
# move openrc to init.d
install -Dm755 "$srcdir"/qubes-input-sender.openrc "$pkgdir"/etc/init.d/qubes-input-sender
2024-07-27 04:35:48 +00:00
}
sha512sums="
2024-10-10 11:41:14 +00:00
bf4b44ee58347d78682a9b2c9eac10679a7ff17dfd56019a83b009b1165fd3833bc484df3cf9b13068b6754343c017f38a8d2ac2c06e1a0ee53646066daf658a qubes-input-proxy-v1.0.38.tar.gz
88aa950c3014fc9e87af9bafd7cfaed9ac123c01c5ec1731cb654802e2139f5eb7a94ca58c7746dde773c2110deab9f0b90cf0f94bcc3f2ecf9421d7e17d2d40 qubes-input-trigger_use-openrc.patch
2024-07-27 18:59:43 +00:00
21e7b95c94ec1a3f3499e79cf8b1931da2c3e33d8f1af2efe6b52b7e2678d4648bb0597b3a4a95cc10d0ca3cb83df93075b99cf1b615d8493a9e2fd21fb7f8f7 makefile_skip-systemd.patch
2d5cb4369bc4d4c83403bb3e7cd7bc784769950a8fbf581996074fe53cc65c56fe4039e2689b6fa34e51ce22e552fc145115c12e71601809767962a3682dd299 qubes-input-sender.openrc
2024-07-27 04:35:48 +00:00
"