From eecc6b4d3ac8706d9c761aaf1d2edae7239cf2ab Mon Sep 17 00:00:00 2001
From: Diab Neiroukh <lazerl0rd@thezest.dev>
Date: Fri, 26 Nov 2021 20:52:09 +0000
Subject: [PATCH] Allow using the "standard" v4l2loopback driver.
As per https://github.com/dev47apps/droidcam#v4l2-loopback-webcam-driver,
this is supported.
---
.SRCINFO | 4 +++-
PKGBUILD | 6 ++++--
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/.SRCINFO b/.SRCINFO
index d856346..da5d3e3 100644
@@ -23,11 +23,13 @@ pkgname = droidcam
depends = alsa-lib
depends = libjpeg-turbo
depends = ffmpeg
- depends = v4l2loopback-dc-dkms
+ depends = V4L2LOOPBACK-MODULE
depends = libusbmuxd
optdepends = gtk3: use GUI version in addition to CLI interface
optdepends = libappindicator-gtk3: use GUI version in addition to CLI interface
+ optdepends = v4l2loopback-dc-dkms: list DroidCam explicitly and avoid the needed for exclusive_caps=1
pkgname = v4l2loopback-dc-dkms
depends = dkms
+ provides = V4L2LOOPBACK-MODULE
backup = etc/modprobe.d/droidcam.conf
diff --git a/PKGBUILD b/PKGBUILD
index 6b8bbb3..0467ebd 100644
@@ -1,6 +1,7 @@
# Maintainer: AwesomeHaircut <jesusbalbastro at gmail com>
# Maintainer: Mateusz Gozdek <mgozdekof@gmail.com>
# Contributor: Rein Fernhout <public@reinfernhout.xyz>
+# Contributor: Diab Neiroukh <lazerl0rd@thezest.dev>
# Past Contributor: James An <james@jamesan.ca>
pkgbase=droidcam
@@ -41,8 +42,8 @@ build() {
}
package_droidcam() {
- depends=('alsa-lib' 'libjpeg-turbo' 'ffmpeg' 'v4l2loopback-dc-dkms' 'libusbmuxd')
- optdepends=('gtk3: use GUI version in addition to CLI interface' 'libappindicator-gtk3: use GUI version in addition to CLI interface')
+ depends=('alsa-lib' 'libjpeg-turbo' 'ffmpeg' 'V4L2LOOPBACK-MODULE' 'libusbmuxd')
+ optdepends=('gtk3: use GUI version in addition to CLI interface' 'libappindicator-gtk3: use GUI version in addition to CLI interface' 'v4l2loopback-dc-dkms: list DroidCam explicitly and avoid the needed for >
pushd ${pkgbase}-${pkgver}
@@ -59,6 +60,7 @@ package_droidcam() {
package_v4l2loopback-dc-dkms() {
depends=('dkms')
backup=("etc/modprobe.d/${pkgbase}.conf")
+ provides=('V4L2LOOPBACK-MODULE')
_pkgname=v4l2loopback-dc
local install_dir="${pkgdir}/usr/src/${_pkgname}-${pkgver}"
--
2.34.1