From e698fb17a150678e9df5a88a4d062ce86cee59fe Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Tue, 31 Dec 2024 00:51:47 +0100 Subject: [PATCH] New package: usbkvm-0.1.0 --- srcpkgs/usbkvm/patches/libcamera.patch | 14 ++++++++++++++ srcpkgs/usbkvm/template | 17 +++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 srcpkgs/usbkvm/patches/libcamera.patch create mode 100644 srcpkgs/usbkvm/template diff --git a/srcpkgs/usbkvm/patches/libcamera.patch b/srcpkgs/usbkvm/patches/libcamera.patch new file mode 100644 index 00000000000000..a72cafcd50a0ec --- /dev/null +++ b/srcpkgs/usbkvm/patches/libcamera.patch @@ -0,0 +1,14 @@ +Void uses libcamera by default, which shadows the v4l2 devices +but uses different names and properties, so USBKVM doesn't find them. +Allow gstreamer to use all devices and find the underlying v4l2 device. + +--- a/src/usbkvm_application.cpp ++++ b/src/usbkvm_application.cpp +@@ -72,6 +72,7 @@ + + { + m_monitor = gst_device_monitor_new(); ++ gst_device_monitor_set_show_all_devices(m_monitor, true); + + auto bus = gst_device_monitor_get_bus(m_monitor); + gst_device_monitor_add_filter(m_monitor, "Video/Source", NULL); diff --git a/srcpkgs/usbkvm/template b/srcpkgs/usbkvm/template new file mode 100644 index 00000000000000..279617852651aa --- /dev/null +++ b/srcpkgs/usbkvm/template @@ -0,0 +1,17 @@ +# Template file for 'usbkvm' +pkgname=usbkvm +version=0.1.0 +revision=1 +build_style=meson +hostmakedepends="glib-devel go pkg-config" +makedepends="gstreamer1-devel gtkmm-devel hidapi-devel" +short_desc="USBKVM client app" +maintainer="Leah Neukirchen " +license="GPL-3.0-or-later" +homepage="https://github.com/carrotIndustries/usbkvm" +distfiles="https://github.com/carrotIndustries/usbkvm/releases/download/v${version}/usbkvm-v${version}.tar.gz" +checksum=ac1aeef6c0bd906662f6c4d3cff158ea45c361a52ef0ae2e025075961786df07 + +pre_build() { + . /void-packages/common/environment/build-style/go.sh +}